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
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

Dave Cohen - October 27, 2009 - 00:53
Category:feature request» support request

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

vectoroc - October 27, 2009 - 01:49

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

Dave Cohen - October 27, 2009 - 20:21
Category:support request» bug report
Status:active» fixed

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

System Message - November 10, 2009 - 20:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.