fetching 2nd page in the back
- From: "MD" <MD@xxxxxx>
- Date: Mon, 11 Sep 2006 23:01:40 GMT
When displaying the metadata for our system, takes about 5 seconds to
display
10 results to the browser. The whole process works like this.
1. Call the servlet from the javascript with Dom
var dom = new ActiveXObject( "Msxml2.DOMDocument" );
dom.async = false;
dom.load("/servlet/GetSearchResult?start=0&num=10");
2. parse this dom to display in the table.
Once we have the xml in the dom takes less than seconds to display in the
table.
But the problem is when getting the search result from the server. In order
to
at least looks faster we want to fetch the result for the second page after
getting
the result for the first page. I want to hide the 2 nd page search result
behind
until a user clicks on 2 nd page button. when this user gose to the 2 nd
page
I start fetching the search result for the 3 page. Can this be done with
Javascript?
Thanks in advance.
D
.
- Follow-Ups:
- Re: fetching 2nd page in the back
- From: Tom Cole
- Re: fetching 2nd page in the back
- Prev by Date: FAQ Topic - How do I format Last Modified date with javascript
- Next by Date: Re: David Flanagan's 5th Edition Javascript
- Previous by thread: FAQ Topic - How do I format Last Modified date with javascript
- Next by thread: Re: fetching 2nd page in the back
- Index(es):