I have an XML document containing 400+ quotations, in the format:
quotes
qtnum
title
author
comment
quotes
...400+ more
XML file size 156Kb
The tag <xml id="quotes" src="qtsxml_br.xml"></xml> is on the htm page.
The "quotenum" is obtained from a form on the html page.
The code snippet:
var numOfQuotes = 402; // needs to be changed manually as quotes are added
//numQuotes needs to be global for both functions
function FindQuote()
{
var qutNum = parseInt(quotenum.value);
while (!quotes.recordset.eof)
{
//script is working to this point - it is the next line that is problem
var findNum = quotes.recordset("qtnum");// always bombs out!!
if (findNum.indexof(qtNum) >= 0)
{
ResultHTML +=" ...
I have a "random quote" script that bombs out at the same line.
The page is at
http://www.bishfish.co.nz/quotes/fishquotes2.htm if it helps.
Any help would be appreciated, so would pionting me to a cross-browser
script to
get me out of IE's Data Island clutches.
--
Tony Bishop
www.bishfish.co.nz
New Zealand