Hi All,
I'm a novice in PHP and web development. My previous experience is in window application with C#.NET. Here, I'd like to know more about this statement below :
With the field Reminder Interval you define how often your browser will check for pending events.
It means that programmer can code our web browser (eg IE, Mozilla) to check for pending events every user defined time, is it? I get confused all user action is immediately done by web browser, is it? So why do we need to add Reminder Interval field value?
pls explain this statement more.
Reminder Interval?
Moderator: General Moderators
Re: Reminder Interval?
Is this possibly a javascript timer where it performs an Ajax request checking for new information?
Re: Reminder Interval?
That definitely applies to Javascript, not to PHP. PHP is executed at the server, before anything is sent to the browser, so of course, it cannot do something based on what happens in the browser. What uses could a Javascript timer serve? It depends entirely on what is desired. If it's a game programmed in Javascript, it could be a time-out. If you would like an image on a web page to refresh with a different image every x seconds, you could use it. As the other responder noted, you could have a page send an Ajax request to the server for new data every 2 minutes, etc. etc. etc. etc.