I have an html file that reads from an xml data every minute and displays the data. Now I need a way of updating the xml data source file in the html document. The source name takes the file structure 16102006_0045 then 16102006_0046 e.t.c.
i have been told that javascript is the way to do this but can't seem to find any info on it.
here is the struture of the html document
Expand|Select|Wrap|Line Numbers
- <html>
- <body>
- <xml id="15102006_1315" src="15102006_1315.xml"></xml>
- <meta http-equiv="refresh" content="10;URL=.......ekoner.html">
- <table border="1" datasrc="#ekoner">
- <thead>
- <tr><th>Data1</th><th>Data2</th><th>Data3</th><th>Data4</th></tr>
- </thead>
- <tbody>
- <tr>
- <td><span datafld="Data1"></span></td>
- <td><span datafld="Data2"></span></td>
- <td><span datafld="Data3"></span></td>
- <td><span datafld="Data4"></span></td>
- </tr>
- </tbody>
- </table>
- </body>
- </html>
Expand|Select|Wrap|Line Numbers
- <?xml version="1.0"?>
- <dataset>
- <row>
- <Data1>1315</Data1> <Data2>2006-10-11 16:00:00</Data2> <Data3>Soccer - Fixtures</Data3> <Data4>Belarus v Slovenia</Data4></row>
- </dataset>
- <row>
Any tips on how to do this best?
Thanks :)