OK, so, I use livequery() to bind a function to the click event of all links of class 'ajaxLink'. The function fires perfectly...once. After the first successful ajax call on a click, subsequent clicks don't fire the ajax, which means (I'm guessing) they aren't being bound by the livequery() code anymore.
I saw where others who had a similar issue moved their code outside the ready() function, so I tried that, to no avail (same results).
$('a.ajaxLink').livequery('click', function(e) {
e.preventDefault();
var target = $(this).attr('href') + '&ajax=y';
var x = $(this).html();
$.ajax({
type: 'POST',
url: target,
//data: str,
success: function(msg) {
$('#mainPanel').slideUp(500, function() {
$(this).html(msg).slideDown(1000);
});
}
});
})
Let me know if you need more detail. Thank you in advance for your help! This site is excellent.