How do I dynamically rewrite a vbs ASP page without reloading the whole thing?
Hi Experts
I have a quick and dirty vbs asp page which creates my grid layout to display some dynamic data
I expect to use js GetElementByID to set the value of each element from the variables I will receive from the server at regular intervals
The thing that's making my hair itch is I have no clue how to implement the calls to the server to get the data WITHOUT reloading the whole page. I want this layout to appear static and not have to reload itself (otherwise I could just have the vbs create the html on the fly from the source data serverside)
The reason for this is that it's some pretty hefty WMI data, and takes a couple of seconds to poll for it, yet I want my page to look smooth, and only the displayed data within it to change
All I want the periodic script to do using a setTimeout timer is get a bunch of data from the server(this data changes all the time), and write the values in the corresponding element
The vbs to get/create the data is already done
The js to write a variable to an html element is straightforward
I had an idea to use a "hidden" iframe which would regularly refresh itself, grab the new data, and then use javascript parent methods to write the data to the relevant elements, but this feels a bit kludgy
Haven't tried it yet, but the code looks very straightforward so I dont envision any issues implementing this. You saved me potentially a wasted day or two
Yep - much better than my (and Mses apparently :P ) messy idea
Is there a cleaner method?