Announcement
Collapse
No announcement yet.
Form post update displayed variables
Collapse
X
-
Here is picture of the issue.
The image is not exactly the same page as my sample posted but it does share some common code elements. After pressing one of the 4 buttons that fire events the display for the HVAC mode remains the old value. Refreshing the page a 2nd time and the value will then reflect the right value.
-rick-Rick
Comment
-
It doesn't seem to have any affect where the table/code is located. What I have done as a band-aid is to add a additional test when i am parsing the stats device string and I force it to a state based on the forms data.
If Request.Form("sVal1") = "Off" then mode = "Off"
If Request.Form("sVal2") = "Heat" then mode = "Heat"
If Request.Form("sVal3") = "Cool" then mode = "Cool"
If Request.Form("sVal4") = "Auto" then mode = "Auto"
and force the display to the "right" mode. I wonder if its a timing issue that the web page is refreshing before the event has finished running? Is there some way to slow down the page refresh? Maybe something like a do while loop and compare the device last change date with now?
-rick-Rick
Comment
Comment