4 points · by ColinWright · 14y ago · 12 comments
- <script type="javascript">
+ <script type="text/javascript">Anyway, file changed, but that doesn't seem to have fixed it. Any other suggestions?
Add an id="results" attribute to the text box, then change the line in your display() function to this:
document.getElementById('results').value = "test"
That works for me.Edit: Works on the server too. Thanks.
Any idea when this changed, and how I could've searched for this? Suppose someone took a JavaScript course back in pre-Netscape 4.0 - how would they come up-to-date?
As an algorithms person I find it completely baffling trying to learn, search, and investigate this stuff. It feels completely impenetrable. I have a PhD in Pure Math, and this makes me feel really thick.
But occasionally I, and others, stray from our core competencies and either choose to or have to deal with things with which they are unfamiliar. In those cases it's nice to have a community to turn to consisting of people who do have expertise and experience in the unfamiliar area.
If it's not too often, and if it's obvious that people have made a genuine attempt to sort things out for themselves, and if the question is distilled to its essence, it's possible that more than one person can learn from the resulting thread.
And many times I've answered people's questions about math, or algorithms, and it's nice to get something back. So thank you to those who replied - it's pretty much sorted now, and I've learned something.
I find it hard to believe that you have a hard time
figuring out something like this without reaching out
to the community in this manner.
And I have a hard time believing that people struggle with some of the elementary math I see questions about, but I generally assume that they have other skills, and that this stuff is hard for them, so that's why I do what I can to help when I get the opportunity. Different people have different skills, different training, different experience and different talents. What I was asking about is the fact that I have been
reading HN for about a year now and I've never seen
a "story" like this come into my news feed. I was
wondering why one suddenly popped.
Well, I've been reading HN for about 5 years now, and I've seen them before. Not often, and usually they are fleeting because the answers come quickly and efficiently, so the item never makes it to the Front Page. It doesn't have to.