GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: January 19 2009 at 11:03 | IP Logged
|
|
|
When I tap a button on my CC screen I execute a macro to sense the current state of the switch associated with the button and then toggle the switch state and correct the button's image, as appropriate.
It used to work in real time with both the CC and the WC (Web Center) displays, but recent changes I've made (darned if I can figure out which) seem to have killed the WC update. If I F5 refresh my web screen the display then becomes correct. On the CC page it is instant and automatic.
From my web page, I call the button tap processor with
Code:
<td width="85" height="50"><div align="center"><a href="http://mydomain.com/ph-cgi/controlcenter?TYPE=3">CC </a></div></td> |
|
|
The TYPE=3 parameter on the call, used to do the trick but no more.
Any ideas, and/or is there a way to force a web screen update from my state-check macro within PH?
As always. . . "THANKS."
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: January 19 2009 at 13:29 | IP Logged
|
|
|
I'm suspecting that what is happening here is that my added state check code resulted in enough delay that the auto update that PH issues to a web page is pushed out before the device status has actually been determined.
If this is the case is a javascript solution on my actual web page to refresh the screen automatically in 2 seconds the only way out?
[OR] Dave, if this is the case and you see this, is it possible to delay the refresh of the web page for a TYPE=3 configuration to be a bit more delayed (setup par maybe?)
Edited by GadgetGuy - January 19 2009 at 13:31
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|