Rank: Member
Groups: Member
Joined: 2/12/2004(UTC) Posts: 24
Was thanked: 1 time(s) in 1 post(s)
|
I have an upload script which saves my files just fine. It is a regular ASP/VBsciprt script (ASP.... not ASP.NET) I would like, once the upload is done, for the browser to navigate to another asp file which will show the current photos. This script runs fine (the one that shows the photos), but I cannot get the browser to redirect to it from the upload script. ImageUploader just pops up with the regular "upload completed" message box, but nothing happens. I tried redirecting with the following asp/vbscript methods, but I got the following results. Window.Open "/foobar.asp" (type mismatch error) Navigate "/foobar.asp" (type mismatch error) Response.Redirect "/foobar.asp" (nothing happens) Anyone know a command that might help me out? Brian Lorraine -> b@bulala.com :@
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Hello, You should add to HTML page with Image Uploader following JavaScript code: Code:<script for="ImageUploader" event="OnProgress(Status, Progress, ValueMax, Value, StatusText)">
if (Status=="COMPLETE"){
//We redirect to PictureGalery.aspx page when upload process is completed
window.location.replace('PictureGallery.aspx');
}
</script>
Note, for handling events you should use following syntax: Code:<script for="ImageUploader" event="OnProgress(Status, Progress, ValueMax, Value, StatusText)">
instead of "magic" one: Code:function ImageUploade::OnProgress(Status, Progress, ValueMax, Value, StatusText)
as it doesn't work on some browsers. Edited by user Thursday, December 20, 2007 7:08:01 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
We also want to add in Image Uploader 2.0 RedirectUrl parameter for automatic redirection after upload.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,659
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
RedirectUrl property was added to Image Uploader 2.0 release. Edited by user Tuesday, February 26, 2008 2:43:51 AM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.