• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I get JavaScript variable to refresh?  RSS feed

 
Steve Dyke
Ranch Hand
Posts: 1779
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following javascript:

The default timer value is .5. But If I decide to change the value in the JSON call, say to 2, the timer continues using the default value of .5.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too much missing info.

Where is timeout declared? How is the original interval set up?
 
Steve Dyke
Ranch Hand
Posts: 1779
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. I jumped the gun before I figured out I needed to clear the browser cache.

It is working now as expected.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!