moleEE132 Posted July 14, 2010 Share Posted July 14, 2010 I am doing this project which involves a huge database that's supposed to be displayed out in a table form and what i am trying to do is when there is an update on to the database, the whole page will not reload(since it will take a super long time) but only the new added info is being update additionally to the page. Quote Link to comment Share on other sites More sharing options...
shortysbest Posted July 15, 2010 Share Posted July 15, 2010 jQuery: setInterval(function (){$j('#date').load('php/notifications/get_frequests.php');}, 2000); #date = id of div to load content php/notifications/get_frequests.php = location and file of the file to be loaded to the div 2000 = amount of miliseconds to reload content Quote Link to comment Share on other sites More sharing options...
shortysbest Posted July 15, 2010 Share Posted July 15, 2010 my bad, it should be : setInterval(function (){$('#date').load('php/notifications/get_frequests.php');}, 2000); Quote Link to comment Share on other sites More sharing options...
moleEE132 Posted July 15, 2010 Author Share Posted July 15, 2010 hi thank you Will try out your codes and update on the results soon thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.