Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload data bound tables

Status
Not open for further replies.

aykes

Technical User
Oct 10, 2001
2
US
I have an HTML file that uses tabs and data binding. What I do is generate comma-delimited files and use data binding to display the data. The .csv files are constantly being updated, and I want this to be reflected on the HTML page without having to manually reload. How can I do this?
 
First, I assume you are using a Tabular Data Control bound to your table. Assuming this is true, be sure to declare a JScript procedure (no, not javascript, this only works in IE) such as:
Code:
<SCRIPT LANGUAGE=&quot;JScript&quot;>
function dataReload()
{  objTDC.DataURL = objTDC.DataURL;
   objTDC.Reset();
}
</SCRIPT>
This probably ought to go in your page's HEAD, preferably after your OBJECT declaration of your TDC.

Then in your BODY tag:
Code:
<BODY onLoad='Window.setTimeout(&quot;dataReload()&quot;, 10000)'>
This assumes that your TDC is called &quot;objTDC&quot; and that you want it to reload data every 10 seconds (10000 milliseconds).

I haven't verified all this, but resetting the DataURL (even to itself) causes the TDC to reload data when you subsequently Reset it.

See:

and when you get there click on &quot;DataURL&quot; in the Properties list shown there.

Then you need to invoke setTimeout properly. See:


Note: the code snippets above have not been tested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top