[jQuery] jquery unbind events before removing html?

2009-04-26 Thread lhwpa...@googlemail.com
hi all, i have a perfomance querstion. when is bind some jquery events to, for example, p id=test/p. and later i remove this HTML with jquery should i unbind all events first or are they unbinded with removing the html?

[jQuery] Re: jquery unbind events before removing html?

2009-04-26 Thread lhwpa...@googlemail.com
automatically, you don't need to worry about that. On Apr 26, 6:42 am, lhwpa...@googlemail.com lhwpa...@googlemail.com wrote: hi all, i have a perfomance querstion. when is bind some jquery events to, for example, p id=test/p. and later i remove this HTML with jquery should i unbind all

[jQuery] Re: jquery unbind events before removing html?

2009-04-26 Thread lhwpa...@googlemail.com
oh and what about .load() event ? are things cleaned there correctly before inserting the new html or should i usw .empty().load() ? On 26 Apr., 22:18, lhwpa...@googlemail.com lhwpa...@googlemail.com wrote: thanks for your answer! what about recursion? removing an ul for example $(ul#test

[jQuery] any way to combine this with additional selectors?

2009-02-11 Thread lhwpa...@googlemail.com
hi i have the following problem: is there any way to combine this in a selector like $(this) with additional selectors like $(this+ span.hello) ? i tried this for a time but i everytime get an error. the only way i see is: $(#+$(this).attr(id)+ span.hello) is this the common way ? thanks for

[jQuery] callback for append function?

2009-02-02 Thread lhwpa...@googlemail.com
is there any way to get a callback when append is ready? i have the following problem. i add some images with .append() after this i have to get the .height() of these images. when i now execute .append() it takes a while to load the images so the .height() function can not find the images.

[jQuery] Re: callback for append function?

2009-02-02 Thread lhwpa...@googlemail.com
great! thanks for that! one last question. is it possible to fire a function when the last of 5 images is loaded ?

[jQuery] Re: callback for append function?

2009-02-02 Thread lhwpa...@googlemail.com
ok thanks, and is there any way to use the load event to an image included with append?

[jQuery] .animate() custom animation callback?

2009-01-14 Thread lhwpa...@googlemail.com
hi, im using .animate() to create a custom animation. is there any way to handle a callback function? normal . animation() has a parameter for a callback function but not the one for own animations?