provide way to avoid window.location.reload()
vectoroc - October 26, 2009 - 23:42
| Project: | Drupal for Facebook |
| Version: | 6.x-2.x-dev |
| Component: | Facebook Connect |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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');

#1
I 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.
#2
I 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.
#3
I 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.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.