This is a discussion on how to update A page with table-data (alarm-list) within the alt.comp.lang.php forums, part of the PHP Programming Forums category; first: I could't found any suggestions/solutions in FAQ/tutorials My problem, i want to refresh a alarmlist, which ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
first: I could't found any suggestions/solutions in FAQ/tutorials
My problem, i want to refresh a alarmlist, which is is not a big issue - using "setInternval(<js-funcion>)" in the header-part. But i want to control it from the html-page using start/stop-button. I tried to write a js-function which start "setInterval" and which "clearIntervall" but it doesn't work. So one of the questions is "is it possible to clearInterval(<variable>) within the php-context? next: Is it possible to stopp '<meta http-equiv="refresh" content="5; URL=<php-script>' within the php-script? Is anybody here who solved such a problem? Any suggestions? |
|
|||
|
"Helmut Arnold" <helmut.arnold@online.de> wrote in message news:dmql2m$c50$1@online.de... > first: I could't found any suggestions/solutions in FAQ/tutorials > > My problem, i want to refresh a alarmlist, which is is not a big issue - > using "setInternval(<js-funcion>)" in the header-part. > But i want to control it from the html-page using start/stop-button. sounds like it could be do-able. see below. > > I tried to write a js-function which start "setInterval" and which > "clearIntervall" but it doesn't work. setInterval() was introduced in Netscape 4 and IE 4. google for code. I would have to. check out http://msdn.microsoft.com and search there. they are sure to have something. > > So one of the questions is "is it possible to clearInterval(<variable>) > within the php-context? this is purely a JS question. some people do a function Every100() { //code to be executed here //reset timer: timeEvery100=setTimeout("Every100();",100); } timeEvery100=setTimeout("Every100();",100); window.onunload=new Function("clearTimeout(timeEvery100);"); I don't know if that really helps you any. > > next: Is it possible to stopp '<meta http-equiv="refresh" content="5; > URL=<php-script>' within the php-script? only if you can force a new page on the browser, maybe with javascript's window.location.href="url" possibly you can use window.stop(), but it exists only in Netscape 4.0+ > > Is anybody here who solved such a problem? > not me. > Any suggestions? |