Forum Moderators: open

Message Too Old, No Replies

iframe problem in IE

iframe problem in IE, login page in Iframe, not creating cookies, IE

         

Dev_Bisht

7:21 am on Sep 3, 2007 (gmt 0)

10+ Year Member


Hi all,

I create a login form and put it into an iframe on my website. All looks great.

I tested it with Firefox , it was working fine.

but when I tried to login using IE7 all that happens is that the login box gets refreshed and nothing else appears to happen.

if I change my form target "_self" to "_blank" or "_top" then it is working fine. but why it is not working when terget is "_self".

please tell me it solution.

regards
Dev Bisht

penders

12:45 pm on Sep 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I tend not to use IFRAMEs much at all, but IMHO _self should target the current frame ie. the 'login' document inside the IFRAME. So in that respect, IE7 seems to be doing it right!? You would need to use _parent or _top to target the outer page(?)

Dev_Bisht

12:56 pm on Sep 3, 2007 (gmt 0)

10+ Year Member



actully my client need iframe so I have to use.

is there any other solution without changing form terget?. please tell me.

Dev

penders

6:31 pm on Sep 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Why can't you change the form target?

Dev_Bisht

5:38 am on Sep 4, 2007 (gmt 0)

10+ Year Member



because I want to open form action's url into that Iframe. this application will be used in different sites.

[edited by: Dev_Bisht at 6:26 am (utc) on Sep. 4, 2007]

penders

6:44 am on Sep 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ah OK... what if you remove the target attribute altogether? Afterall, I would have thought that _self was the implied default value?

Dev_Bisht

12:45 pm on Sep 4, 2007 (gmt 0)

10+ Year Member



ok, but that is not a problem. problem is that I want to load form action url on that iframe but after login only page is refresh no form action url is displaying.

penders

1:15 pm on Sep 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have just tried what I think you are trying to do in IE6 and it appears to work OK. (I haven't tried IE7) I'm wondering whether it is some kind of security restriction with IE7?!

The URL specified in the action attribute is presumably a different page? Is it also on a different server?

How does the page (specified in the action attribute) process the form?

Can you paste your form code?

penders

8:29 am on Sep 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have just tried what I think you are trying to do in IE6 and it appears to work OK. (I haven't tried IE7) I'm wondering whether it is some kind of security restriction with IE7?!

I have since tried this (simplified) example in IE7 and again it seems to work OK. The URL specified in the action attribute is followed, the page in the IFRAME is not simply refreshed.

It does sound as if it is something to do with the way you process the form rather than an issue with the IFRAME?