Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] YUI Animation : Hiding a DIV element with a FORM elements inside

Expand Messages
  • Matt Sweeney
    ... Hi, Without seeing the rest of the implementation code, I would guess that setting overflow:hidden on the containing element will fix this. If not, send
    Message 1 of 2 , Oct 8, 2009
    View Source
    • 0 Attachment
      r2b2_ry wrote:
      > Hi,
      > I enclosed a form within div tags and then i wanted to hide the div container of the form when a button is click :
      >
      > var attributes = {height: { to: 0 },width: {to:0}};
      >
      > var anim = new YAHOO.util.Anim('projectFilterContainer', attributes, 1, YAHOO.util.Easing.easeOut);
      >
      > when i call anim.animate() , the div does hide but the Form and its elements are retained. How can I hide a div and its child nodes?
      >
      > Thanks !
      >

      Hi,

      Without seeing the rest of the implementation code, I would guess that
      setting overflow:hidden on the containing element will fix this.

      If not, send along the rest of the code, and I will take a look.

      -Matt
    Your message has been successfully submitted and would be delivered to recipients shortly.