how to update A page with table-data (alarm-list)

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


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-02-2005
Helmut Arnold
 
Posts: n/a
Default how to update A page with table-data (alarm-list)

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?
Reply With Quote
  #2 (permalink)  
Old 02-19-2006
Jim Michaels
 
Posts: n/a
Default Re: how to update A page with table-data (alarm-list)


"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?



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:03 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0