I'm wondering why something relatively simple doesn't function in netscape 7
As I understand it, netscape7 has an xml parser. so why doesn't this file work? (see below)
All it does is provide a form that is bound to a simple xml file. It should allow the user of this page to see the data about books contained in the xml file it is bound to.
However - when I call it up in Netscape 7, the fields are blank.
Can someone offer some tips as to what's different, or maybe refer me to some good reading that addresses differences in IE and NS xml
I am a nobody, and nobody is perfect; therefore, I am perfect.
As I understand it, netscape7 has an xml parser. so why doesn't this file work? (see below)
All it does is provide a form that is bound to a simple xml file. It should allow the user of this page to see the data about books contained in the xml file it is bound to.
However - when I call it up in Netscape 7, the fields are blank.
Can someone offer some tips as to what's different, or maybe refer me to some good reading that addresses differences in IE and NS xml
Code:
<html>
<head>
<title>Data Binding Sample Thingy</title>
</head>
<body>
<XML id=xmlData src="booklistMINE.xml"></XML>
<h1>Navigating the Booklist XML Files</h1>
<table border="1" borderColor="maroon" cellPadding="1" cellSpacing="1" width="75%">
<tr bgColor="#999999">
<td><font color="maroon" size="2">Title</font></td>
<td><input dataFld="title" dataSrc="#xmlData" style="Height: 22px WIDTH: 286px"></td>
</tr>
<tr bgColor="#999999">
<td><font color="darkred" size="2">Quantity</font></td>
<td><input dataFld="quantity" dataSrc="#xmlData" style="Height: 22px WIDTH: 286px"></td>
</tr>
<tr bgColor="#999999">
<td><font color="maroon" size="2">ISBN</font></td>
<td><input dataFld="ISBN" dataSrc="#xmlData" style="Height: 22px WIDTH: 286px"></td>
</tr>
</table>
<input id="button1" name="button1" onClick="xmlData.recordset.moveFirst()" type="button" value="First">
<input id="button2" name="button2" onClick="if(xmlData.recordset.absoluteposition>1)xmlData.recordset.movePrevious()" type="button" value="<">
<input id="button3" name="button3" onClick="if(xmlData.recordset.absoluteposition<xmlData.recordset.recordcount)xmlData.recordset.moveNext()" type="button" value=">">
<input id="button4" name="button4" type="button" value="Last" onClick="xmlData.recordset.moveLast()">
</body>
</html>
I am a nobody, and nobody is perfect; therefore, I am perfect.