-->
Page 1 of 1

How do I print (or wprint) to the same location again?

PostPosted: Fri Dec 09, 2016 12:50 am
by heckler
Hey Group,

So in my sonoff timeswitch module code the module gets the time from NTP once a day. Currently if I let the module run for several days and then check its webpage it shows several line entrys with the time that was synced (one for each day since reset). Over time I believe this will fill up the webpage with multiple lines each time the Time was updated.

Is there a way to cause the WPRINT command to first locate to a certain line/column before it does the print??
Or is there some other html directive to locate the cursor to a certain spot before the WPRINT is executed??

I know that I can CLS the webpage (and maybe I should at least once a day to prevent other bugs and issues) But it would be nice to be able to define the location for the cursor to be for a given print command.

thanks for any help or guidance.
dwight

Re: How do I print (or wprint) to the same location again?

PostPosted: Fri Dec 09, 2016 11:11 am
by robert badiduwitz
I think an easy way to do that is use textbox instead of print or wprint. The value seems to update right away when you change the variable's value. Just a thought....