[jQuery] Re: Ajax related issue

2009-10-07 Thread stevel
I found the answer to my own question. To overcome this problem, I have to use the .live method to bind current and future elements on the page. I made the following change to my function to use the .live method.: jQuery.fn.checkmarkClickWithAjax = function(){ this.live("click",function(){

[jQuery] Ajax related issue

2009-10-07 Thread stevel
I encountered an unusual problem. I have a ajax setup. And clicking a specified image will call this ajax function. It goes something like: jQuery.ajaxSetup({ 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept","text/ javascript")} }) jQuery.fn.checkmarkClickWithAjax = function(){ t