Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to stop a line of code from executing again when the page reloads?  RSS feed

 
Er. Rohit Sharma
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. can anyone help me out in this.... My page reloads as per the requirement.
But there are certain lines which I dont want to execute again...
Please Help....
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post some code, So we can understand exact problem.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use the session to record the state of the application, such as the fact that certain code has already been run.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!