Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Graphic Buttons Not Working in Web Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
PTSaputo
Newbie
Newbie
Avatar

Joined: August 08 2012
Online Status: Offline
Posts: 3
Posted: August 08 2012 at 17:47 | IP Logged Quote PTSaputo

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 View PTSaputo's Profile Search for other posts by PTSaputo
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: August 08 2012 at 18:03 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
PTSaputo
Newbie
Newbie
Avatar

Joined: August 08 2012
Online Status: Offline
Posts: 3
Posted: August 08 2012 at 18:42 | IP Logged Quote PTSaputo

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 View PTSaputo's Profile Search for other posts by PTSaputo
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: August 08 2012 at 21:56 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
PTSaputo
Newbie
Newbie
Avatar

Joined: August 08 2012
Online Status: Offline
Posts: 3
Posted: August 09 2012 at 02:48 | IP Logged Quote PTSaputo

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 View PTSaputo's Profile Search for other posts by PTSaputo
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: August 09 2012 at 06:17 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum