I want to update page with ajax requests but FB_Connect.statusHandle refreshes page always. I've used actualy monkey patch FB_Connect.statusHandle = function () {}; $(document).unbind('fb_connect_status');
I want to update page with ajax requests but FB_Connect.statusHandle refreshes page always. I've used actualy monkey patch FB_Connect.statusHandle = function () {}; $(document).unbind('fb_connect_status');
Comments
Comment #1
Dave Cohen commentedI think this is correct, use
$(document).unbind('fb_connect_status', FB_Connect.statusHandle);You shouldn't need to redefine FB_Connect.statusHandle().Is there a problem with this approach? It's the reason I added the pseudo event.
Comment #2
vectoroc commentedI have to use $(document).unbind('fb_connect_status', FB_Connect.statusHandle) each time when Drupal.behaviors will be called.
I must be sure that my code from Drupal.behaviors will be called after Drupal.behaviors.fb_connect.
Comment #3
Dave Cohen commentedI just moved the bind call to FB_Connect.init(). So it should be called only on the first page load and not subsequent ajax requests.
This stuff is new, and I have only one site under development that uses it. So keep the feedback coming and help me get this right. Thanks. Set this issue status to active if there is still a problem.