468,107 Members | 1,375 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

<form target="foo" ...> fails in IE with showModalDialog

The following HTML file invoker.html creates a modal dialog:

<html><head>
<script language="JavaScript">
function popup() {
window.showModalDialog("main.html", null,
"dialogHeight:300px;dialogWidth:500px;dialogLeft:1 00;dialogTop:100s");
}
</script>
</head><body>
<a href="javascript:popup();">popup</a>
</body>
</html>

The dialog, main.html, is a frameset:

<frameset rows="*,*">
<frame name="one" src="one.html">
<frame name="two" src="two.html">
</frameset>

The top frame has a simple form (one.html), targeted at the bottom
frame:

<form action="three.html" target="two">
<input type="submit" value="go">
</form>

The bottom frame has some text (two.html):

Two.

The target of the action, three.html, also just has some text:

Three.

Now, in IE6, the word Three will appear in the bottom frame after
clicking on the go button. But in IE 5.0, the word Three will appear
in the top frame.

Replacing window.showModalDialog with window.open makes it work in
IE5, as well, but then the window isn't modal...

Any workaround?

Kai
Jul 20 '05 #1
2 7814
Ka*************@gmx.net (Kai Grossjohann) wrote in
news:e8**************************@posting.google.c om:
The following HTML file invoker.html creates a modal dialog:

<html><head>
<script language="JavaScript">
function popup() {
window.showModalDialog("main.html", null,
"dialogHeight:300px;dialogWidth:500px;dialogLeft:1 00;dialogTop:100s
");
}
</script>
</head><body>
<a href="javascript:popup();">popup</a>
</body>
</html>

The dialog, main.html, is a frameset:

<frameset rows="*,*">
<frame name="one" src="one.html">
<frame name="two" src="two.html">
</frameset>

The top frame has a simple form (one.html), targeted at the bottom
frame:

<form action="three.html" target="two">
<input type="submit" value="go">
</form>

The bottom frame has some text (two.html):

Two.

The target of the action, three.html, also just has some text:

Three.

Now, in IE6, the word Three will appear in the bottom frame after
clicking on the go button. But in IE 5.0, the word Three will appear
in the top frame.

Replacing window.showModalDialog with window.open makes it work in
IE5, as well, but then the window isn't modal...

Any workaround?


Sure - like many people do, disable javascript, and then
the behaviour will be the same on all browser versions ;-)

--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website: http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics
Jul 20 '05 #2
Dave Patton <dp*****@remove-for-nospam.confluence.org> writes:
Sure - like many people do, disable javascript, and then
the behaviour will be the same on all browser versions ;-)


Does this mean that you are volunteering to hand out modal dialogs to
all http requesters visiting the servers?

I'd like three, please, but no cheese.

Kai

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mason A. Clark | last post: by
9 posts views Thread by bill | last post: by
6 posts views Thread by scottyman | last post: by
2 posts views Thread by Peter Laman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.