472,954 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 software developers and data experts.

fetching 2nd page in the back

MD
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

Sep 11 '06 #1
1 1293

MD wrote:
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?
Sure, look into XmlHttpRequest. It can work in the background while
you're doing other stuff.

To tell you the truth I would have had the first 10 load this way as
well....
>
Thanks in advance.

D
Sep 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andres Baravalle | last post by:
Hi, I have a problem using a URL fetching algorithm (HTTP 1.0). To download an image, I used to use this algorithm: <?php Header("Content-type: image/gif"); $referer =...
5
by: David Jacques | last post by:
I have to write a console application which will fetch a zip on a daily basis. This zip file is hotlinked in a web page. The name of this .zip file will change every day. I've been able to start...
7
by: multicherry | last post by:
Hi, Having searched for a way to fetch a window object by name, all I came across were answers along the line of... "All you have to do is say windowObj = window.open("blah", "name");" which...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
0
by: satishr23 | last post by:
Hi, I am trying to parse the contents of a PHP page from the web which requires me to authenticate. I guess the way to do this is to make my program login to the login page,grab the cookie and...
7
by: John Nagle | last post by:
I'm reading the PhishTank XML file of active phishing sites, at "http://data.phishtank.com/data/online-valid/" This changes frequently, and it's big (about 10MB right now) and on a busy server....
17
by: joberman | last post by:
I've about give up with the whole mysql_insert_id function. Always returns a "0". I do have an auto-incrementing field in my database called "ordernumber", which when I query it from another page,...
10
by: anonymous | last post by:
How can I set report output parameter "Page 1 of max" to get output on first page in minimum time as it takes much time in fetching max page no. in first page and report is of around million pages
2
by: SunshineInTheRain | last post by:
I'm trying to modify a long long code within a button click by make the insert/update/delete/select using the same transaction. Purpose is to make sure every operation can be rollback instead of some...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.