[jQuery] Re: How to animate remove() and html() ?

2008-03-09 Thread Fabien Meghazi
> not tested : > > $.get("URL", function(html) { > $(html).hide().appendTo('#foobar').fadeIn("fast"); > }); Yeps working. Thanks ! -- Fabien Meghazi Website: http://www.amigrave.com Email: [EMAIL PROTECTED] IM: [EMAIL PROTECTED]

[jQuery] Re: How to animate remove() and html() ?

2008-03-09 Thread Alexandre Plennevaux
not tested : $.get("URL", function(html) { $(html).hide().appendTo('#foobar').fadeIn("fast"); }); On Sun, Mar 9, 2008 at 1:51 PM, Fabien Meghazi <[EMAIL PROTECTED]> wrote: > > > .html() isn't suitable - ie what does it mean to 'slowly' change the > > html content of an element?? Perhap

[jQuery] Re: How to animate remove() and html() ?

2008-03-09 Thread Fabien Meghazi
> .html() isn't suitable - ie what does it mean to 'slowly' change the > html content of an element?? Perhaps a typing effect, or cloning a > div, changing the content then fading the original - but these would > be specialised effects that you should code yourself. Please, don't pay attentio

[jQuery] Re: How to animate remove() and html() ?

2008-03-07 Thread Hamish Campbell
Remove: $('#someElement').hide('slow').remove(); Html: .html() isn't suitable - ie what does it mean to 'slowly' change the html content of an element?? Perhaps a typing effect, or cloning a div, changing the content then fading the original - but these would be specialised effects that you sho

[jQuery] Re: How to animate remove() and html() ?

2008-03-07 Thread Fabien Meghazi
> You can do a similar thing with "show" (or "fadeIn", etc). > > $('Text') > .hide() > .appendTo(somewhere) > .fadeIn(1000); Thanks guys! And sorry about asking questions when I know the answer. It must be because I'm working 16h/day while sleeping 5h/day since 2 weeks. My brain is slow

[jQuery] Re: How to animate remove() and html() ?

2008-03-06 Thread Karl Rudd
Here's come code from the Examples section of the "hide()" documentation (http://docs.jquery.com/Effects/hide#examples): $("div").click(function () { $(this).hide(2000, function () { $(this).remove(); }); }); You can do the same thing with "fadeOut" or any of the other effects (http://do

[jQuery] Re: How to animate remove() and html() ?

2008-03-06 Thread MorningZ
Well, just throwing this out but to remove the html of a div and "animate" it, you could say like: $(dv).fadeOut("slow").html("");