Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic login with callback function fails because popup window cannot open #11

Open
nibl opened this issue Sep 3, 2012 · 0 comments

Comments

@nibl
Copy link

nibl commented Sep 3, 2012

Programmatic login with a callback, as described in the instructions, does not work. Probably because Chrome and Firefox block the popup. It works fine without the callback function though.

Chrome and Firefox block popup windows unless the user initiates opening a new window. Opening the window must be the first action performed by the event.
Is this not the case with a callback in general, or just the way the callback is implemented here?

// jQuery code example:
//
$('#openLogin').live('click', function() {

$.couch.browserid.login(); // works, but since there's no callback the program loses track of the login process and is not informed of how to continue

$.couch.browserid.login(function(event, error, user) {...}  // callback fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant