hi below is a sample of my code which appears in an asp page...
how can i page the recordset returned to show 10 results on a page?
Set xml = Server.CreateObject ("Microsoft.XMLHTTP"
xml.Open "GET", " & queryStr & "&offset=" & txtOffset , false'
xml.send
resultLength = CInt(xml.selectNodes("SEARCHRESULTS/RESULTSET/RESULT"
.length)
For iCount= 0 to CInt(resultLength)-1
set Node = xml.selectSingleNode("SEARCHRESULTS/RESULTSET/RESULT[@ID=" & CInt(iCount)& "]"
Response.Write(Node.selectSingleNode("TITLE"
.text)
Response.Write("<DD><a onMouseOver=""window.status='" & Node.selectSingleNode("URL"
.text & "';return true;""" )
Response.Write("onMouseOut=""window.status='';return true;"" href=""" & Node.selectSingleNode("REDIR"
.text & """>"
Response.Write(Node.selectSingleNode("URL"
.text & "</a></DD><br><br>"
Next
Set xml = nothing
how can i page the recordset returned to show 10 results on a page?
Set xml = Server.CreateObject ("Microsoft.XMLHTTP"
xml.Open "GET", " & queryStr & "&offset=" & txtOffset , false'
xml.send
resultLength = CInt(xml.selectNodes("SEARCHRESULTS/RESULTSET/RESULT"
For iCount= 0 to CInt(resultLength)-1
set Node = xml.selectSingleNode("SEARCHRESULTS/RESULTSET/RESULT[@ID=" & CInt(iCount)& "]"
Response.Write(Node.selectSingleNode("TITLE"
Response.Write("<DD><a onMouseOver=""window.status='" & Node.selectSingleNode("URL"
Response.Write("onMouseOut=""window.status='';return true;"" href=""" & Node.selectSingleNode("REDIR"
Response.Write(Node.selectSingleNode("URL"
Next
Set xml = nothing