Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

<iframe> login to google apps issue

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

Junior Member

10+ Year Member

joined:June 10, 2007
posts: 104
votes: 0


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:


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.