Jump to content

Updates page w/o reloading the whole page


moleEE132

Recommended Posts

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.