Author |
|
PTSaputo Newbie
Joined: August 08 2012
Online Status: Offline Posts: 3
|
Posted: August 08 2012 at 17:47 | IP Logged
|
|
|
For some reason, the web interface is not very responsive. In the live Control Center, ph_setobjgraphic works great to update graphic buttons to show current status of particular devices.
For example:
ph_setobjgraphic("__AG-BDRMS","HALL","C:\powerhome\web\graph ics\buttons\b1brown-d_125.gif","C:\powerhome\web\graphics\bu ttons\b1gray-d_125.gif")
But using web interface, when I select a graphic button, the web interface appears to do nothing. The Down graphic does not display and any update set in ph_setobjcgraphic does not appear to make any change. However, if I load a different web page and then return to the same web page, it is indeed updated and the button does indeed function.
Any ideas?
__________________ Metamorphosis
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: August 08 2012 at 18:03 | IP Logged
|
|
|
I believe it the nature of the beast. If I use a navigation cc for the type of action it solves the problem which essentially is the same thing you are doing by refreshing the page.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
PTSaputo Newbie
Joined: August 08 2012
Online Status: Offline Posts: 3
|
Posted: August 08 2012 at 18:42 | IP Logged
|
|
|
Is there any way to run a navigation cc through a macro command?
Or is it necessary, each time a button is selected which is to update the screen to click a different navigation tab and then when that tab loads, click back to tab where we began?
__________________ Metamorphosis
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: August 08 2012 at 21:56 | IP Logged
|
|
|
I use an action text with type Navigate CC and for ID. I use the same TAB I am already in so basically it refreshes itself. I have not yet figured how to get it into a macro. That would be nice but for now I don't believe it is possible. Hopefully it is on Dave's wish list.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
PTSaputo Newbie
Joined: August 08 2012
Online Status: Offline Posts: 3
|
Posted: August 09 2012 at 02:48 | IP Logged
|
|
|
Thx!
That works well, with a button called "Update" that navigates to the
same tab.
But I wonder why ph_setcctab does not act to do the same thing? It
would be so much cleaner to be able to add a command to any macro
that requires a screen update.
__________________ Metamorphosis
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: August 09 2012 at 06:17 | IP Logged
|
|
|
Without going into too much detail, I believe it has to do with the call that is generated to the web server. If you look at the raw code that is generated the "cc" generates a call and a response is given where the others are internal. I was originally trying to basically run a command center remotely but switched over to mirroring them using ssrequest for updating and that solved my problem. But that requires PH in both systems.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|