Hello,
I’ve got an error in mine html source. The html file starts with browse buttons with wich you can browse through the first table. The second table shows some attributes belonging to the people selected in the first table. Than there are another pair of browse buttons with wich you can browse through the third table which display only one ‘course’ a time from the people selected in the first table. The problem is that this table (third) doesn’t display any values. And I can’t figure out why.
I hope someone can help me,
Thanks,
Charl
<!-- Start of HTML file: test.html -->
<HTML>
<HEAD>
<TITLE>HTML with XML Data Island</TITLE>
</HEAD>
<BODY>
<XML ID="xmlDoc" SRC="test.xml">
</XML>
<P>ORDER NUMBER: <SPAN DATASRC="#xmlDoc" DATAFLD="order_number"></SPAN></P>
<INPUT TYPE=BUTTON VALUE="First Order" onclick="xmlDoc.recordset.moveFirst()">
<INPUT TYPE=BUTTON VALUE="Previous Order" onclick="xmlDoc.recordset.movePrevious()">
<INPUT TYPE=BUTTON VALUE="Next Order" onclick="xmlDoc.recordset.moveNext()">
<INPUT TYPE=BUTTON VALUE="Last Order" onclick="xmlDoc.recordset.moveLast()">
<TABLE DATASRC="#xmlDoc" DATAFLD="customer" BORDER>
<THEAD><TH>NAME</TH><TH>ID</TH></THEAD>
<TR>
<TD><SPAN DATAFLD="name"></SPAN></TD>
<TD><SPAN DATAFLD="custID"></SPAN></TD>
</TR>
</TABLE>
<p>
<TABLE DATASRC="#xmlDoc" DATAFLD="item" BORDER=1>
<THEAD><TR><TH>ITEM</TH><TH>PRICE</TH></TR></THEAD>
<TR>
<TD><SPAN DATAFLD="name"></SPAN></TD>
<TD><SPAN DATAFLD="price"></SPAN></TD>
</TR>
</TABLE>
<p><br>
<!-- The problem occurs here: -->
<INPUT TYPE=BUTTON VALUE="First Cours" onclick="tbl.firstPage()">
<INPUT TYPE=BUTTON VALUE="Previous Cours" onclick="tbl.previousPage()">
<INPUT TYPE=BUTTON VALUE="Next Cours" onclick="tbl.nexPage()">
<INPUT TYPE=BUTTON VALUE="Last Cours" onclick="tbl.lastPage()">
<p>
<TABLE ID="tbl" DATAPAGESIZE=1 DATASRC="#xmlDoc" DATAFLD="order/courss" BORDER>
<THEAD><TR><TH>Date when cours started</TH><TH>Course name</TH></TR></THEAD>
<TR>
<TD><SPAN DATAFLD="cours"></SPAN></TD>
<TD><SPAN DATAFLD="cours"></SPAN></TD>
</TR>
</TABLE>
<!-- End of the problem -->
</BODY>
</HTML>
<!-- End of the HTML file -->
<!-- Start of XML file: test.xml -->
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet type="text/css" href="test.css"?>
<orders>
<order order_number="2233">
<customer>
<name>John Smith</name>
<custID>192883</custID>
</customer>
<item>
<name>Fly Swatter</name>
<price>9.99</price>
</item>
<courss>
<cours date="12012001">Mavo</cours>
<cours date="12012002">Hoge School</cours>
</courss>
</order>
<order order_number="2234">
<customer>
<name>Marea Angela Castaneda</name>
<custID>827145</custID>
</customer>
<item>
<name>Fly Paper</name>
<price>15.99</price>
</item>
<courss>
<cours date="12121980">Basisschool</cours>
</courss>
</order>
<order order_number="2235">
<customer>
<name>Amy Jones</name>
<custID>998022</custID>
</customer>
<item>
<name>Mosquito Netting</name>
<price>38.99</price>
</item>
<courss>
<cours datum="12121980">Basisschool</cours>
</courss>
</order>
</orders>
<!— End of XML file -->
I’ve got an error in mine html source. The html file starts with browse buttons with wich you can browse through the first table. The second table shows some attributes belonging to the people selected in the first table. Than there are another pair of browse buttons with wich you can browse through the third table which display only one ‘course’ a time from the people selected in the first table. The problem is that this table (third) doesn’t display any values. And I can’t figure out why.
I hope someone can help me,
Thanks,
Charl
<!-- Start of HTML file: test.html -->
<HTML>
<HEAD>
<TITLE>HTML with XML Data Island</TITLE>
</HEAD>
<BODY>
<XML ID="xmlDoc" SRC="test.xml">
</XML>
<P>ORDER NUMBER: <SPAN DATASRC="#xmlDoc" DATAFLD="order_number"></SPAN></P>
<INPUT TYPE=BUTTON VALUE="First Order" onclick="xmlDoc.recordset.moveFirst()">
<INPUT TYPE=BUTTON VALUE="Previous Order" onclick="xmlDoc.recordset.movePrevious()">
<INPUT TYPE=BUTTON VALUE="Next Order" onclick="xmlDoc.recordset.moveNext()">
<INPUT TYPE=BUTTON VALUE="Last Order" onclick="xmlDoc.recordset.moveLast()">
<TABLE DATASRC="#xmlDoc" DATAFLD="customer" BORDER>
<THEAD><TH>NAME</TH><TH>ID</TH></THEAD>
<TR>
<TD><SPAN DATAFLD="name"></SPAN></TD>
<TD><SPAN DATAFLD="custID"></SPAN></TD>
</TR>
</TABLE>
<p>
<TABLE DATASRC="#xmlDoc" DATAFLD="item" BORDER=1>
<THEAD><TR><TH>ITEM</TH><TH>PRICE</TH></TR></THEAD>
<TR>
<TD><SPAN DATAFLD="name"></SPAN></TD>
<TD><SPAN DATAFLD="price"></SPAN></TD>
</TR>
</TABLE>
<p><br>
<!-- The problem occurs here: -->
<INPUT TYPE=BUTTON VALUE="First Cours" onclick="tbl.firstPage()">
<INPUT TYPE=BUTTON VALUE="Previous Cours" onclick="tbl.previousPage()">
<INPUT TYPE=BUTTON VALUE="Next Cours" onclick="tbl.nexPage()">
<INPUT TYPE=BUTTON VALUE="Last Cours" onclick="tbl.lastPage()">
<p>
<TABLE ID="tbl" DATAPAGESIZE=1 DATASRC="#xmlDoc" DATAFLD="order/courss" BORDER>
<THEAD><TR><TH>Date when cours started</TH><TH>Course name</TH></TR></THEAD>
<TR>
<TD><SPAN DATAFLD="cours"></SPAN></TD>
<TD><SPAN DATAFLD="cours"></SPAN></TD>
</TR>
</TABLE>
<!-- End of the problem -->
</BODY>
</HTML>
<!-- End of the HTML file -->
<!-- Start of XML file: test.xml -->
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet type="text/css" href="test.css"?>
<orders>
<order order_number="2233">
<customer>
<name>John Smith</name>
<custID>192883</custID>
</customer>
<item>
<name>Fly Swatter</name>
<price>9.99</price>
</item>
<courss>
<cours date="12012001">Mavo</cours>
<cours date="12012002">Hoge School</cours>
</courss>
</order>
<order order_number="2234">
<customer>
<name>Marea Angela Castaneda</name>
<custID>827145</custID>
</customer>
<item>
<name>Fly Paper</name>
<price>15.99</price>
</item>
<courss>
<cours date="12121980">Basisschool</cours>
</courss>
</order>
<order order_number="2235">
<customer>
<name>Amy Jones</name>
<custID>998022</custID>
</customer>
<item>
<name>Mosquito Netting</name>
<price>38.99</price>
</item>
<courss>
<cours datum="12121980">Basisschool</cours>
</courss>
</order>
</orders>
<!— End of XML file -->