Need help with Toggle

January 9th, 2009
  • Hi,

    i need a quick guide on how to animate toggle div element. I have a help div at the top of page which suppose to slide down whenever user click on help link.

    my old jQuery look lik this:

    another question is how can i use the build ver. which is minimized for faster loading./:)


  • Sorry to revive this post, but I was looking for this exact behavior and could not find anything.

    The funciton is as simple as this.

    slideToggle(Ext.get('My-Div'));

    You just have to add this code to your library.

    function slideToggle(e)
    {
    if(e.isDisplayed() )
    {
    //It is visible.
    e.slideOut('t',{
    useDisplay:true
    });
    }
    else
    {
    //It ain't Visible.
    e.slideIn('t',{
    useDisplay:true
    });
    }
    }







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Need help with Toggle , Please add it free.