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

Notification

Icon
Error

Options
Go to last post Go to first unread
tgc  
#1 Posted : Tuesday, October 28, 2008 11:45:53 PM(UTC)
tgc

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'.
Dmitry  
#2 Posted : Wednesday, October 29, 2008 8:37:08 PM(UTC)
Dmitry

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");
}
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
tgc  
#3 Posted : Thursday, October 30, 2008 7:04:23 AM(UTC)
tgc

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
Dmitry  
#4 Posted : Thursday, October 30, 2008 3:14:16 PM(UTC)
Dmitry

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.
File Attachment(s):
default.zip (2kb) downloaded 13 time(s).
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
tgc  
#5 Posted : Monday, November 3, 2008 8:59:12 PM(UTC)
tgc

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!
Dmitry  
#6 Posted : Tuesday, November 4, 2008 5:33:20 PM(UTC)
Dmitry

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

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
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.