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



Go to last post Go to first unread
#1 Posted : Thursday, August 12, 2010 4:11:19 PM(UTC)

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Sometimes it is required to hide Image Uploader component on a page clicking on a button, and to show it again when it is necessary. Now you are able to use the sample application which allows doing it.
You can find it bellow in the attachment. You will be able to see additional method showHideUploader(divId):

function showHideUploader(divId) {
var div = document.getElementById(divId);
if (hidden) {
   div.style.visibility = 'visible';
   div.style.height = 'auto';
else {
   div.style.visibility = 'hidden';
   div.style.height = '0px';
hidden = !hidden;

This method is called on the event onclick="showHideUploader('divFileUpload')"
of the HTML button on the page. Image Uploader component is located in div element which has id = divFileUpload and initially the visibility attribute is set to the “hidden” value:

<div id="divFileUpload" style="height: 0px; visibility: hidden;">
  <script type="text/javascript">
    //Create JavaScript object that will embed Image Uploader to the page.
    var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);
    /* … 
    Your code
    … */

Please download and try this sample. Post any questions or comments about it here. I will be glad to assist you.

Also, you can read topic HOWTO: Hide/show Flash Uploader using HTML button.

Edited by user Thursday, August 12, 2010 4:16:57 PM(UTC)  | Reason: Not specified

File Attachment(s):
ShowHideIUSample.zip (2,126kb) downloaded 62 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
Fedor on 11/7/2010(UTC)
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.