Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.