• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

IE8 issue submitting form from inside iframe

M

Mark B

Flightless Bird
Hello All,

I have a page (asp.net) that includes a form presented to the user
inside an iframe. When the form is submitted, it submits to a third
party site that requires the receiving form to be a the top page in
the window. Because of this, I'm submitting the form using
target="_blank". I've been using this for some time with no issues in
both IE7 and firefox. Now that I've got a new Win 7 machine with IE8,
it does not work.

IE8 will not pass the form values to the receiving page when the
receiving page is opened in a new blank window or tab. If I submit
inside the iframe, the receiving page gets the values but it has
errors due to the issue that it will not properly run inside an
iframe.

Also, it works correctly if my initiating form is the top object in
the window (but I need it to be in an iframe).

It works correctly if I use target-"_parent", opening the receiving
page inside the same window as the initiating form. I'm using this as
a temp fix but I'd prefer not to make the user leave my site
completely.

If anyone has an idea how to address this, I'd appreciate any ideas.

Thanks.
 
P

PA Bear [MS MVP]

Flightless Bird
Developer-specific resources include:

MSDN IE Development Forum (post such questions here instead)
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads

Tip: When posting in Developer forums, always include a link to your web
site or test pages in your first post.

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
debugging tool for IE6, IE7, and IE8)
http://www.microsoft.com/downloads/...FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.aspx

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/


Mark B wrote:
> Hello All,
>
> I have a page (asp.net) that includes a form presented to the user
> inside an iframe. When the form is submitted, it submits to a third
> party site that requires the receiving form to be a the top page in
> the window. Because of this, I'm submitting the form using
> target="_blank". I've been using this for some time with no issues in
> both IE7 and firefox. Now that I've got a new Win 7 machine with IE8,
> it does not work.
>
> IE8 will not pass the form values to the receiving page when the
> receiving page is opened in a new blank window or tab. If I submit
> inside the iframe, the receiving page gets the values but it has
> errors due to the issue that it will not properly run inside an
> iframe.
>
> Also, it works correctly if my initiating form is the top object in
> the window (but I need it to be in an iframe).
>
> It works correctly if I use target-"_parent", opening the receiving
> page inside the same window as the initiating form. I'm using this as
> a temp fix but I'd prefer not to make the user leave my site
> completely.
>
> If anyone has an idea how to address this, I'd appreciate any ideas.
>
> Thanks.
 
Top