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

Notification

Icon
Error

Options
Go to last post Go to first unread
Vijai  
#1 Posted : Wednesday, November 7, 2007 10:59:55 PM(UTC)
Vijai

Rank: Member

Groups: Member
Joined: 11/5/2007(UTC)
Posts: 4

Hi

I need to set the Filemask property of Imageuploader at Runtime.
Any suggestion please.

Code:
iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe;*.doc;*.pdf");


Thanks
VJ

Edited by user Monday, February 25, 2008 12:55:56 PM(UTC)  | Reason: Not specified

George Ulyanov  
#2 Posted : Thursday, November 8, 2007 10:27:24 AM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

Please see FileMask property reference (Get/Set Value in Runtime section). Don't forget to call Refresh method after assigning this property.

Code:
getImageUploader("ImageUploaderID").setFileMask(value);
getImageUploader("ImageUploaderID").Refresh();

Edited by user Monday, February 25, 2008 1:00:43 PM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
Vijai  
#3 Posted : Thursday, November 8, 2007 7:07:41 PM(UTC)
Vijai

Rank: Member

Groups: Member
Joined: 11/5/2007(UTC)
Posts: 4

Hi
when I tried to set FileMask at runtime I got this error.
"Microsoft JScript runtime error: Object doesn't support this property or method"

I call this below function from the PageLoad.

Code:
<script>
function ImageUploader_FileMask(value)
{
    getImageUploader('ImageUploader1').setFileMask(value);
    getImageUploader('ImageUploader1').Refresh();
}
</script>


Please correct me if I am wrong.

Thanks
VJ

Edited by user Monday, February 25, 2008 1:01:45 PM(UTC)  | Reason: Not specified

George Ulyanov  
#4 Posted : Monday, November 12, 2007 11:51:48 AM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

At which exact line do you receive this error?

Edited by user Monday, February 25, 2008 1:01:28 PM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
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.