Click here to Skip to main content
15,075,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a requirement that has data stored in sql database.I need to alert the user based on data stored sql and current system time on the webpage using javascript .I need to perform calculations based on sql database data and current time in jquery and then alert user like outlook remainder.Please help.
Mohibur Rashid 29-May-13 1:41am
Try using SetTimeout function
Post the current code so that we can modify that.

1 solution

You can use the setTimeout() function.

function runQuery() {
url: 'url/path/here.php',
success: function(data) {
// do what you want here
setTimeout(runQuery, 5000);

//Now make it start when the document loads
$(document).ready(function() {
setTimeout(runQuery, 5000);

I hope this will work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900