By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,446 Members | 2,998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,446 IT Pros & Developers. It's quick & easy.

Very strange problem - Firefox and "variable is not defined" after refresh

P: n/a
Alright, so here's the problem. I define a global variable in my script
and then add methods/properties to it. Everything works great, no error
in Javascript Console. But when I refresh site, several errors
"variable is not defined" are displayed. What is more strange, the
script is still working ! After each another refresh these errors are
keep showing, only after I close site and open it again, these errors
disappear, but only to next refresh. Also there is even more strange
thing - these problems accured after I added some code to my script,
but when I removed whole new code these errors are keep showing..

Anyone know what the hell is going on? Is that a bug or something in
Javascript Console?

I'm using Firefox 1.5.0.6 (these problems were also in 1.0.5, but when
I installed 1.5.0.6 they dissappeared.. not for long..)

Aug 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Larax said the following on 8/22/2006 9:51 AM:
Alright, so here's the problem. I define a global variable in my script
and then add methods/properties to it. Everything works great, no error
in Javascript Console. But when I refresh site, several errors
"variable is not defined" are displayed. What is more strange, the
script is still working ! After each another refresh these errors are
keep showing, only after I close site and open it again, these errors
disappear, but only to next refresh. Also there is even more strange
thing - these problems accured after I added some code to my script,
but when I removed whole new code these errors are keep showing..

Anyone know what the hell is going on? Is that a bug or something in
Javascript Console?

I'm using Firefox 1.5.0.6 (these problems were also in 1.0.5, but when
I installed 1.5.0.6 they dissappeared.. not for long..)
URL to a sample page that displays the behavior?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.