Rank: Member
Groups: Member
Joined: 6/21/2006(UTC) Posts: 15
|
Hello,
Firstly i would like to say that this forum has been very helpful so far in working with the Image uploader Photo Order sample. Thank you
I have a question...
When a image is selected and dragged into the upload section i want to be able to set the description to have a default of 1... Im not sure how to change the code to do this?
Thank you for your time
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, Quote:Firstly i would like to say that this forum has been very helpful so far in working with the Image uploader Photo Order sample Thank you :) Here is the code: Code:var oldUploadFileCount = 0;
function ImageUploader_UploadFileCountChange() {
var imageUploader1=getImageUploader("ImageUploader1");
if (imageUploader1) {
var newUploadFileCount = imageUploader1.getUploadFileCount();
for (var i = oldUploadFileCount + 1; i <= newUploadFileCount; i++){
imageUploader1.setUploadFileDescription(i, "1");
}
oldUploadFileCount = newUploadFileCount;
}
}
…
var iu = new ImageUploaderWriter("ImageUploader1", 1000, 700);
…
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
Edited by user Monday, February 18, 2008 7:43:43 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 6/21/2006(UTC) Posts: 15
|
Worked Perfect!!!
Thanks Alex
|
|
|
|
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.