Page 1 of 1

iframe problem when login into the site which is in iframe .

Posted: Wed Oct 17, 2007 3:17 am
by djdon11
pickle | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hi everyone...

i have a problem with i frame tag , i am using following code - >

[syntax="html"]<iframe name="googledocs" src="http://docs.google.com"  align="middle" width="700" height="600"></iframe>
when i open the page than the googledocs site comes into the iframe there is no problem with that , BUT when i get login into the google docs site than after login the page does not comes into this iframe instead of that the new page comes in whole browser not in this iframe ... ..

can anybody let me know whats going on or where is the wrong thing in this iframe tag ... ?

please do reply i am waiting for reply

Thanks...


pickle | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Oct 17, 2007 10:39 am
by pickle
Your post is pretty difficult to understand, but let me see if I read it correctly: When you make the <iframe> 'src' attribute some site other than http://docs.google.com, it works fine. When you put http://docs.google.com in the iframe though, it actually shows up in the whole window.

If that is indeed your problem, my first guess would be that there's nothing you can do. I'd bet http://docs.google.com has Javascript in it that breaks it out of iframes.

Posted: Wed Oct 17, 2007 11:11 am
by Josh1billion
I'm not entirely sure either, but I think what he's saying is that he has the login form on http://docs.google.com embedded in an iframe on his page, and when the user logs in with that form, the login handler page pops up in a new window rather than in that iframe.

As for the solution.. I don't know.

the problem comes when we logged in...

Posted: Thu Oct 18, 2007 12:35 am
by djdon11
thanks for your reply ..

actually googledocs's login page is coming into the iframe there is no problem with the login page of googledocs but when i get sign in after submitting my username & password than the home page after login not coming into the iframe instead of this it covers the whole window......

any solution ???

Posted: Thu Oct 18, 2007 12:55 am
by mrkite
The form probably targets _top. If that's the case, there's nothing you can do. It's bad form to iframe other people's sites.