I'd like to have my browser page be updated when system status (temperature, etc.) changes.
I know I can use <meta http-equiv="refresh" content= 1> but that makes the page flash and makes it hard to reliably click on the buttons on the page, they get missed if you try to click during a refresh.
I've incorporated the Ajax example from Tod Gentille, it helps reduce the flashing and missed-clicks problem, but still runs on a timer.
I've looked at Forrest's sample based on Tod's work, but it too relies on a timer.
I'd like my Netburner code to set a bool called UpdateWeb whenever the status changes, and have the browser page get updated whenever this is true (and then set it to false, I hope). I haven't used Javascript (yet) so there may be something obvious that would work.
Can I use a simple page with a function call to pass Update to the javascript?
Thanks!
Sam
Can I conditionally update an html page?
Re: Can I conditionally update an html page?
If you want that type of real-time update, you can use java or flash to create a tcp connection from the web browser back to the netburner. Than you can update any time you wish.
Re: Can I conditionally update an html page?
Thanks rnixon,
I'll look into FLEX, I guess.
Thanks,
I'll look into FLEX, I guess.
Thanks,