Hi Rodrigo, I think it is possible. Basically you need to do this:
- Open the authorization page in a popup windows. To do this just use the windows.open method (documentation available online on how to create a popup is easy to find) - The authorization URL contains a redirect URL which is where the user gets redirected with the token. You need to create a special page where the user will get redirected that will do this: * save the token somewhere in your database * notify the windows in the background that something has happened, please read this blog<http://www.1pixelout.net/2005/04/19/cross-window-javascript-communication/>that explains how to do it. I am not sure this is possible after a redirect. If not possible the workaround is to have the main window regularly ping your server to know if it received a token already. * close itself (the popup) using self.close() Cheers! And good luck! Nicolas On Sat, Feb 12, 2011 at 9:01 AM, Rodrigo Olivares < [email protected]> wrote: > Does it possible implement (maybe someone already did this) the > authorization process using a popup window? > > I have a webpage and I do not want redirect the actual page to the > authorization page because I'll lost the actual data in page, so , does it > possible make a process different to that in order to avoid that flow ? > > I would to have one popup window or ajax process in order to acomplish this > task. > > Please give some hints!! > > Thank you very much. > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://code.google.com/apis/contacts/community/forum.html > -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
