sommardahl
Guppy
I am working on a project for school and have hit a brick wall. The HTML code below calls up the first recordset in the XML document JUST FINE. It displays the picture and text without problem. Here's the problem. The buttons at the bottom don't do anything. No page refresh, no data update. I can't figure it out. If you can offer some help, please post it here:
Sorry if this is the wrong place to post this. -Byron
Code:
<html>
<head>
<title>XML Data Test</title>
</head>
<body>
<xml id="try" src="default.xml"></xml>
<img datasrc="#try" datafld="Cover"> </img>
Artist: <div datasrc="#try" datafld="Artist"></div>
Album: <div datasrc="#try" datafld="cd"></div>
Year: <div datasrc="#try" datafld="Year"></div>
Song: <div datasrc="#try" datafld="Song"></div>
<BUTTON ONCLICK="try.recordset.moveFirst()"><<</BUTTON>
<BUTTON ONCLICK="try.recordset.movePrevious()"><</BUTTON>
<BUTTON ONCLICK="try.recordset.moveNext()">></BUTTON>
<BUTTON ONCLICK="try.recordset.moveLast()">>></BUTTON>
</body>
</html>
Sorry if this is the wrong place to post this. -Byron