I asked a similar question before, but I didn't get any satisfactory answers. Basically, my problem is this: I've made some text games in Javascript, and most of the time they run okay, except that at least one of them sometimes says a function is not defined, even when it is defined. The FireFox Javascript console says the error occurs on line 1, even though there is no code there (I believe all line 1 says is '').
Let me emphasis the point: This SOMETIMES happens, but NOT ALWAYS. Even with NO changes to the code, refreshing the page sometimes makes it spontaneously start working. I've already checked the code, and from everything I've seen, this error should NEVER happen (I'm putting all those caps because the other people didn't seem to realize that yes, the code actually really shouldn't be doing that). This kind of random behavior seems to go against every law of programming I've ever heard of. So, does anyone have any ideas on how to solve this?
2007-02-17
12:27:11
·
3 answers
·
asked by
Anonymous