XUpload - Upload again without refresh?

Posts: 8
Joined: Sep 13, 2007 6:32 pm

Upload again without refresh?

#1 Postby Thomas » May 01, 2008 4:49 am

Hi after the upload is done, i'd like to stay on the same page. ..

Keep in mind i'm using the pbmode is = inline, but even in popup mode, it reloads the parent page. I've made the following page which gets me half way there.

# print"</Form><Script>document.F1.submit();document.location='about:blank';</Script></BODY></HTML>";

print"</Form><Script>document.location='javascript:false';parent.hideLayer(); </Script></BODY></HTML>";

Is there anyway for me to not have to reload the parent page? I've got a small DHTML file browser so i don't want the parent page reloaded, i just want to keep on uploading if possible, but strange things happen, after i hide the layer and show the upload button again :)

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

#2 Postby PilgrimX182 » May 01, 2008 6:45 am

You just have to remove "document.F1.submit();" from upload.cgi I think since this code submit form to the parent.

Posts: 8
Joined: Sep 13, 2007 6:32 pm

#3 Postby Thomas » May 01, 2008 10:16 pm

That does work, but the multi-selector needs to be cleared, and the whole thing doesn't seem to want to upload again. Is there something else that needs to be done?