Jump to content

Auto-Update / Push PHP Noob Question


CodyBecker

Recommended Posts

K. Will try.    ummmmmmmmmmm

 

I have created a low end Police Dispatching program.  However if i use the meta refresh script my site will last for about 3 mins before it crashes.  So i need to know if there is a way to query only a small part of the page to check to see if the information has changed and if it has to display it.

As Ken suggests, this is a perfect situation to make use of AJAX.

 

I recommend using the jQuery framework because it simplifies a lot of the code that you would otherwise have to deal with.

 

Three parts to this system:

 

1. A PHP page (or other server side script) which outputs the small section of data to display. This page will never be shown to the user but will be called behind the scenes by jQuery.

 

2. The javascript to make the AJAX call to the above PHP script. It needs to retrieve the data and update the page with the new info.

 

3. Use some javascript code to create a timer that will keep calling the AJAX code after x secs/mins.

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.