[jQuery] binding after ajax

[jQuery] binding after ajax


Hallo,
I'm using jQuery to turn my links into ajax calls, using $.post. The result
is updated into a container with $('#container').html = result.
What I want to do is refresh a list of products in this manner, e.g. as
result of a search. Each product has a link to add the product to the cart.
These link have to be turned into ajax calls, for instance:
$('.ajaxPopup').click(function () {
ajaxPopup();
})
The ajaxPopup function is responsible for making the $.post call and
updating the html.
My question is:
If I add some html to container, will the elements in the html be added to
the Dom, and if so, can I use a plugin like LiveQuery to do the binding as
described above?
Thanx,
Henk Feijt
--
View this message in context: http://www.nabble.com/binding-after-ajax-tp18809215s27240p18809215.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.