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

Running ajax request in a loop

P: 82

I have html page that part of it is static and part of it changing continuously. What I want to do is, in the static part of the page I want to run an hidden ajax script in a loop that run in the background and checks continuously the DB for some information, while the active part of the page is changing continuously by the user. If the information is set in the DB, I want the user to get notification, as a OK CANCEL BOX. Can I get an example of such a script?
Nov 4 '07 #1
Share this Question
Share on Google+
6 Replies

Expert Mod 5K+
P: 5,390
hi ...

please show the code you have so far relating to that problem ...

kind regards
Nov 4 '07 #2

P: 82
1) Just a basic question. How can I run javascript in the background
2) How can I simulate a button press automatically.
Nov 5 '07 #3

P: 82
About 1) I found the solution. Call the same function from the same function with timeout function.
Nov 5 '07 #4

Expert Mod 15k+
P: 16,027
2) How can I simulate a button press automatically.
Use the click() method.
Nov 5 '07 #5

P: 82
Thanks acoder for your help
Nov 6 '07 #6

Expert Mod 15k+
P: 16,027
No problem. You're welcome.
Nov 6 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.