472,145 Members | 1,428 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Show Modal Dialog in IE 5

NRM
Hi,

I have a web application which has a page. From that page I need to show a
modal dialog to capture some information. The page displayed in the modal
window has Ok and Cancel buttons, clicking on which updates some information
and the window is closed.
However, showModalDialog doesnt seem to work properly with IE 5.0. On click
of Ok, a new browser window is displayed. I have tried putting
<base target="self">
but this seems to work only with IE 6.

I then tried creating a dummy .htm page which has an iFrame whose source is
the .aspx page I am displaying in the modal dialog.
This worked fine in IE 5.0 just the first time round. Subsequently,
postbacks always cause a new browser window to be opened.

Code in the Test.htm file is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test1</title>
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name=ProgId content=VisualStudio.HTML>
<meta name=Originator content="Microsoft Visual Studio .NET 7.1">
</head>
<body MS_POSITIONING="GridLayout">
<iframe id="myFrame" src= myPage.aspx" height=100% width=100%
scrolling=no></iframe>
</body>
</html>

Can anyone help me out here?

Thanks,
N

Nov 19 '05 #1
1 1303
Hi,
Iframe will not work with showmodal.. reason dont know.
Kishor P.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Patrick Lim | last post: by
2 posts views Thread by Gilles T. | last post: by
10 posts views Thread by Guadala Harry | last post: by
11 posts views Thread by AMDRIT | last post: by
2 posts views Thread by sthrudel | last post: by
5 posts views Thread by Enij | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.