XUpload Pro jump to top of page.

XUpload related questions

Moderator: admin

Message
Author
daniel
Posts: 5
Joined: May 24, 2007 2:56 am

XUpload Pro jump to top of page.

#1 Postby daniel » May 24, 2007 2:59 am

I hope this isn't a newbie question, but is it possible to jump to the top of the page after submitting.

Here is the situation:
- I am defaulting my form to display inside the table.
- After adding 20 files I go to the bottom of the page to hit the Upload button.
- The progress meter is at the top of the page so a user is left at the bottom in a blank space.
- I would like for the browser to jump back to the top upon hitting the Upload button.

Any ideas?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » May 24, 2007 5:21 am

Sure. In xupload.js find

Code: Select all

setTimeout("openStatusWindow()",500);

and add below:

Code: Select all

window.scrollTo(0,0);


Thats' it.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests