wood burning stoves
The moose likes HTML, CSS and JavaScript and the fly likes IE + Iframe popup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IE + Iframe popup problem" Watch "IE + Iframe popup problem" New topic

IE + Iframe popup problem

Rakesh Rajan

Joined: Apr 18, 2007
Posts: 1
Hello Everyone,

I was stuck with this really frustrating problem for sometime. Let me
explain what I am trying to achieve: There is a form and an inner
iframe. The form's target is set to the iframe so that when the form
is submitted, the page does not get reloaded/changed ( as the iframe
would be the one getting refreshed. The Iframe is set to have 0 width
and height to make it look invisible ).

The html source ( http://www.mediafire.com/?9a0mdgjym2z ) to demonstrate this.
There are 2 form/iframe pair
a) Static form / iframe
b) Javascript generated form / iframe.
and both forms are submitted using javascript.

In firefox, both a) and b) works perfectly ( i.e there are no
popups / page reloads/ page change )
In IE, a) works fine BUT b) does not ( a popup is created when the
form is submitted )

I am failing to understand why b) is not working in IE ( i.e why
the popup is appearing ).
Could someone help me on this one ?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Why are you submitting to an invisible iframe when Ajax would make all of this so much simpler?

[Asking smart questions] [About Bear] [Books by Bear]
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 408
I couldn't find iframe creation by javascript on the webpage that you linked.

myiframe.setAttribute( ...

BTW: If you're just trying to get an asynchronous response to a click from a server object, I definitely agree that you should look into AJAX.

Correlation does not prove causality.
I agree. Here's the link: http://aspose.com/file-tools
subject: IE + Iframe popup problem
It's not a secret anymore!