Forum Moderators: open
For instance if I want part of the main page to have a refresh without a full refresh every so often. There is a function on the server that executes another partial refresh after so much time. Can the ajax connect to the function so that the function applies to the http request? Thank you very much. Melanie
What you can do is setup an AJAX call that polls a particular script on the server every n seconds (or even microseconds) to see if there is new content. If there is new content, than the callback function puts that content into the correct section of the page.
Most of the AJAX libraries out there have example files for how to do this as it's the backbone of using AJAX. :)