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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

noodling with XML

Status
Not open for further replies.

scroce

MIS
Nov 30, 2000
780
US
I'm experimenting with some XML out of a Wrox book. Basically, the example creates an XML file of books, using book title, ISBN and description as XML tags.

The example then binds this data to an HTML page that you're supposed to be able to click a button and scroll through the records using commands like

Code:
xmlData.recordset.moveLast()


Problem is that the first record shows up in my HTML file, however I can't scroll thru the records. Anyone know why this could be happening or how I might fix it

Here is the code that should advance the records:
Code:
<INPUT id=&quot;button1&quot; name=&quot;button1&quot; onClick=&quot;xmlData.recordset.moveLast()&quot; type=&quot;button&quot; value=&quot;First&quot;>
<INPUT id=&quot;button2&quot; name=&quot;button2&quot; onClick=&quot;if(xmlData.recordset.absoluteposition>1)xmlData.recordset.movePrevious()&quot; type=&quot;button&quot; value=&quot;<&quot;>
<INPUT id=&quot;button3&quot; name=&quot;button3&quot; onClick=&quot;if(xmlData.recordset.absoluteposition<xmlData.recordset.recordcount)xmlData.recordset.moveNext()&quot; type=&quot;button&quot; value=&quot;>&quot;>
<INPUT id=&quot;button4&quot; name=&quot;button4&quot; onClick=&quot;xmlData.recordset.moveLast()&quot; type=&quot;button&quot; value=&quot;Last&quot;>

I am a nobody, and nobody is perfect; therefore, I am perfect.
 
answered my own silly question. It was becuase in my datasource xml file I was missing a closing tag.

silly me.

I am a nobody, and nobody is perfect; therefore, I am perfect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top