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

Notification

Icon
Error

Options
Go to last post Go to first unread
Dmitry.Obukhov  
#1 Posted : Thursday, August 12, 2010 4:14:39 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Recently we have several requests how to hide Image Uploader Flash component on a page. This topic describes implementation of this way.
You can find the sample application allows doing this in the post attachment. You will be able to see the method showHideUploader(divId):
Code:

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 fired on event onclick="showHideUploader('divFileUpload')"
of the HTML button. Image Uploader Flash component is located in div element which has id = divFileUpload and initially the visibility attribute is set to the “hidden” value:
Code:

<div id="divFileUpload" style="height: 0px; visibility: hidden;">
    <aur:ImageUploaderFlash ID="Uploader1" runat="server" Height="480px" Width="640px"
    <!-- Your code --> 
    </aur:ImageUploaderFlash>
</div>

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 Image Uploader using HTML button.

Edited by user Wednesday, April 18, 2012 8:58:29 PM(UTC)  | Reason: Not specified

File Attachment(s):
ShowHideFlashUploaderSample.zip (669kb) downloaded 59 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
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.