Ruby on Rails
Thursday, September 27, 2012
In this code -
FB.login(
function(response) {
if (response.authResponse) {
return window.location = '/auth/facebook/callback';
}
}, { scope: 'email' }
);
Instead of doing "window.location" here, how it can be done through ajax? Please help.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/3MltWHTxyfsJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment