IE7, Forms and Frames. I'm having some issues.

gregor7777

Platinum Member
Nov 16, 2001
2,758
0
71
So I have a page that displays a form from another server. Now, this little page has been chugging along for a couple years without issue.

It works great in IE6 and Firefox, but in IE7 I get the following issue. The form displays properly, and functions as it should as far as validation is concerned(user login) but as soon as the correct login info is supplied, the form just seems to refresh, without logging the user in and allowing them to continue.

I've tried removing anything that might be tripping up IE7 (another frame on the page for a header, moving the code around a bit) and I'm left with a very barebone page that works in all browsers EXCEPT IE7.

I'm pulling my hair out. Is there a new security restriction in IE7 that doesn't allow the form to post properly from a frame?

Here's the simple code if it helps (w/o the site, can't post that):
<html>
<head>
<title>MySite.com - Reporting Services</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>


<body>

<iframe width="100%" height="100%"

src="http://www.pagewithform.com/theform.aspx" frameborder="no"

scrolling="no">
Sorry, you need inline frames to fully see this page.
</iframe>


</body>
</html>
And the original code before I started tinkering:

<html>
<head>
<title>MySite.com - Reporting Services</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="105,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="header_file.php" name="topFrame" scrolling="NO" noresize >
<frame src="http://www.pagewithform.com/theform.aspx" name="mainFrame">
</frameset>
<noframes><body>

</body></noframes>
</html>
In case your wondering, I have to use frames because the form is hosted on a site with a URL that my customers cant see. In other words, we're trying to hide the URL of the site with the form.

Any suggestions?

Forgive me the cross-post.
 

Rip the Jacker

Diamond Member
Dec 29, 2004
5,415
1
76
Quick google found: " The problem is actually caused by the "width" attribute on the <iframe> tag being set to "100%". IE7 does not seem to support this, just try changing the attribute to a fixed number and I'm sure you'll find it works."
 

gregor7777

Platinum Member
Nov 16, 2001
2,758
0
71
Originally posted by: Rip the Jacker
Quick google found: " The problem is actually caused by the "width" attribute on the <iframe> tag being set to "100%". IE7 does not seem to support this, just try changing the attribute to a fixed number and I'm sure you'll find it works."

OK, I'll try it with the iframe code but as you can see the code doesn't work with <frameset> either so that wouldn't completly explain it.

I'll post results though.

EDIT:

OK, so no. Removing the width did not work. I can't see why it would have, could you post a link to where you found that info?

<html>
<head>
<title>The Site.com - Reporting Services</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>


<body>

<iframe src="theothersite.com"

frameborder="no" scrolling="no">
Sorry, you need inline frames to fully see this page.
</iframe>


</body>
</html>
 

gregor7777

Platinum Member
Nov 16, 2001
2,758
0
71
Originally posted by: Rip the Jacker
http://forums.microsoft.com/MS...ostID=1067330&SiteID=1

Try just copying someone else's direct code that "works".

Yeah, it wouldn't make sense for width to fix it but some guy said it did on that thread.

Yeah, it would seem that their problem was that the iframe wasn't appearing at all.

Mine shows up just fine, and even does user input validation.

However, when it comes time to process the correct login info, the frame/page just appears to refresh.

I'm pulling my hair out here. I've told our guys to use FireFox for the time being, but hopefully that just a temporary solution.

Thanks though.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
http://msdn2.microsoft.com/en-us/library/bb250493.aspx

Cross-Domain Frame Navigations

As of version 7, IE blocks navigations when one IE window/frame tries to access and navigate another frame and does not have access to it.

I'm not sure I understand why your site is set up the way it is. You're not "hiding" anything; any savvy user could easily determine the URL of the IFRAME page. And while Firefox may work now, cross-domain security restrictions are becoming more common. I would investigate an alternative solution.
 

gregor7777

Platinum Member
Nov 16, 2001
2,758
0
71
Originally posted by: MrChad
http://msdn2.microsoft.com/en-us/library/bb250493.aspx

Cross-Domain Frame Navigations

As of version 7, IE blocks navigations when one IE window/frame tries to access and navigate another frame and does not have access to it.

I'm not sure I understand why your site is set up the way it is. You're not "hiding" anything; any savvy user could easily determine the URL of the IFRAME page. And while Firefox may work now, cross-domain security restrictions are becoming more common. I would investigate an alternative solution.

looks like we'll have to.

As to why we use it: it's purely for the casual onlooker.

Here's the situation we need to avoid:

One of our reps is accessing the form on his laptop. If the customer is looking at the same screen, and looks up at the URL, we'd be in trouble for a number of reasons.

So we want to show off the page to customers, but they won't have any control. We just need to hide the URL.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |