Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
BrAiNumbc  
#1 Posted : Thursday, February 12, 2004 2:43:00 AM(UTC)
BrAiNumbc

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 :@
Andrew  
#2 Posted : Thursday, February 12, 2004 2:55:00 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 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

Andrew  
#3 Posted : Thursday, February 12, 2004 2:57:00 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
We also want to add in Image Uploader 2.0 RedirectUrl parameter for automatic redirection after upload.
Fedor  
#4 Posted : Tuesday, March 30, 2004 9:02:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,508

Thanks: 3 times
Was thanked: 49 time(s) in 48 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
Users browsing this topic
Similar Topics
Redirect after upload not working in Joomla CMS (Discussions – ActiveX/Java Uploader)
by newvisionjeff 1/23/2007 11:31:56 PM(UTC)
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.