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

Notification

Icon
Error

Options
Go to last post Go to first unread
shirai  
#1 Posted : Friday, March 26, 2004 6:07:00 PM(UTC)
shirai

Rank: Member

Groups: Member
Joined: 3/16/2004(UTC)
Posts: 9

Okay, I've purchased the Image Uploader but have now run across a problem in implementation. After I upload the image, our server returns a filename for the image as it is used in our server. I need to somehow grab this filename and use it in a script. Is there any way for me to do this? I thought I might be able to grab a value through an event fired when the upload is complete but this doesn't seem to be the case. Is there any intention of making this possible? Sunny p.s. thanks for your patience and your help.
Fedor  
#2 Posted : Tuesday, March 30, 2004 9:18:00 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 3 times
Was thanked: 40 time(s) in 39 post(s)
Hello, Sorry for delay. You can do it following way: 1. On server-side script just write to document body result file name.
Code:
Response.Write(strFinalName)
2. Get file name using Progress event and its StatusText parameter. StatusText will contain server response.
Code:
<script for="ImageUploader" event="Progress(Status, Progress, ValueMax, Value, StatusText)">
if (Status=="COMPLETE"){
// When upload is finished, we are redirecting to the PictureGalery.aspx page
fileName = StatusText;
alert(fileName)
//window.location.replace('PictureGallery.asp?returnUrl=<%=Server.URLEncode(Request.QueryString("path"))%>');
}
</script>
======================================================== 02/14/2008, Fedor This topic is out of date. You should use iuembed.js syntax now:
Code:
<script type="text/javascript" src="iuembed.js"></script>
<script type="text/javascript">
function ImageUploaderID_Progress(Status, Progress, ValueMax, Value, StatusText) {
    if (Status=="COMPLETE"){
        // When upload is finished, we are redirecting to the PictureGalery.aspx page
        fileName = StatusText;
        alert(fileName);
        //window.location.replace('PictureGallery.asp?returnUrl=<%=Server.URLEncode(Request.QueryString("path"))%>');
    }
}
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...params...
//...other event listeners...
iu.addEventListener("Progress", "ImageUploaderID_Progress");
//...other event listeners...
iu.writeHtml();
</script>
========================================================

Edited by user Wednesday, October 29, 2008 1:29:46 PM(UTC)  | Reason: Not specified

Best regards, Fedor Skvortsov
Users browsing this topic
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.