homepage Welcome to WebmasterWorld Guest from 54.198.157.6
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<iframe> login to google apps issue
CodilX




msg:4391801
 9:13 pm on Nov 28, 2011 (gmt 0)

Hello,

I'm building a set of web-based tools, and I want to include Google Docs into that library.

For this, I'm using jQuery to create modal windows, and using an iframe to load Google docs with Zend Gdata.

If I'm already authenticated with Zend Gdata, Google Docs work perfectly fine within the iframe. But the issue is, that if I'm not logged in, and I have to do so - Google uses some sort of frame busting, that doesn't give me the option to log in - the iframe returns a blank page. I know the script works, if I open the .php demo file within the Zend Gdata package - I can authenticate with my domain successfully, but it won't work within an iframe.

Is there any way to authenticate with Google to allow users to use Google Docs and etc within an iframe? The authentication could take place in a independent popup, but I can't figure out how to close it after a user logs in, as I then have no control of the opened window.

The way Zend Gdata currently authenticates, is using this URL:

https://www.google.com/accounts/AuthSubRequest?next=http://myebsite.com/some.php&scope=http://docs.google.com/feeds/documents&secure=&session=1

And this URL doesn't work with iframes, but Google Apps work after this (if I simply enter this URL into the address bar and log in - not using an iframe).

If anyone has any idea how to make this work, please fill me in. I don't want to break Google's frame busting or anything, but I do need a method for users to authenticate and use Google Apps within my modal-tool based applications and have the ability to use Google Docs.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved