Hide Cancel Button

  •  06-14-2009, 2:49 AM

    Hide Cancel Button

    I want to hide the Cancel button and make it not taking any space in the page.
     
    In a post in the forum I found this code:
     
    function CuteWebUI_AjaxUploader_OnStart()
     {
      var hidden=this;
      hidden.internalobject.cancelBtn.style.visibility="hidden";
     }
     
    It works properly hiding the Cancel button but the space on the page is still used (as by rule of visibility property).
    If I try to use the property display="none" (that is the right one to free also space used by the element in the page)
     
    function CuteWebUI_AjaxUploader_OnStart()
     {
      var hidden=this;
      hidden.internalobject.cancelBtn.style.display="none";
     }
     
    the cancel button is still visible.
     
    Any way to hide and free the space of the cancel button?
     
View Complete Thread