I have used LiveQuery to detect when an element is added to the page. The element is inside an .NET AJAX UpdatePanel. When the UpdatePanel is refreshed, live query does not detect the new element.
<asp:UpdatePanel runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="refresh" />
</Triggers>
<ContentTemplate>
<a id="but1" href="#">Button 1</a>
</ContentTemplate>
</asp:UpdatePanel>
$('#but1').livequery(function(event) {
alert('Button added');
});
The alert only fires when the page is first loaded. Not when the udpatepanel is refreshed.