Rank: Newbie
Groups: Member
Joined: 10/28/2008(UTC) Posts: 3
|
Hi, I've been testing your product for a few days now and it's working great for our project.
One problem I have not figured out is how to update the "MaxFileCount" parameter after it has been initially set.
For example, when the page is loaded the parameter's value defaults to '60'. I then upload some images, say 10. As the site is Ajax heavy I do not redirect to another page so the Image Uploader is not reloaded. However, I now need the MaxFileCount to be reduced to '50'.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, Sure, you can change MaxFileCount value from the script. Code:
function changeMaxFileCount()
{
getImageUploader("ImageUploader1").setMaxFileCount("1");
}
|
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 10/28/2008(UTC) Posts: 3
|
Hi Dmitry, When I try that I get the following javascript error: Code:Error: Object doesn't support this property or method
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, I attached sample html file. |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 10/28/2008(UTC) Posts: 3
|
Hi Dmitry,
Just a quick message to say thanks a lot for you help. I discovered the problem was because I am hiding the image uploader (visibility: hidden) when not in use and IE throws this error if I try to change a property while the uploader is hidden.
I added the setMaxFileCount line to the "ImageUploader_Progress" function so it updates after a successful session of uploading and it's working brilliantly.
I couldn't have fixed it so painlessly without your sample html!
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, thank you for the update. Feel free to make posts if you have some questions. Edited by user Tuesday, November 4, 2008 5:34:00 PM(UTC)
| Reason: Not specified |
|
|
|
|
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.