XUpload - on submit form moves to top of page

Message
Author
Buyaphoto
Posts: 7
Joined: Jul 01, 2008 3:58 am

on submit form moves to top of page

#1 Postby Buyaphoto » Jul 01, 2008 4:03 am

Hi
I have a page that scrolls with the file input down at the bottom of the page.
When I hit the submit button the page goes back to the top of the page instead of staying where it is so that the customer can see the progress meter.
Any ideas how to stop this happening?
sample http://www.buyaphoto.net/upload_form_tiny.html
the sample is not pretty but will give you some idea what I am talking about.
Thanks

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Jul 01, 2008 5:11 am

I see. This was done for pop-up windows, not tiny. But it's easily fixable, just comment this line in xupload.js:

Code: Select all

window.scrollTo(0,0);

Buyaphoto
Posts: 7
Joined: Jul 01, 2008 3:58 am

#3 Postby Buyaphoto » Jul 01, 2008 5:24 am

Good support works magic
Thanks heaps