|
| How to open popup windows in IE/Firefox and return values using ASP.NET and Javascript |
 |
Fri, 25 Jan 2008 16:37:18 +000 |
With the forums flooded with questions of opening a popup window, passing values
to the popup window and then return values back to the parent page using both
Internet Explorer and Firefox, I decided to take a plunge into the subject and
experiment with an easy implementation. This article explains how to transfer
values between the Parent page and a Pop-up window. The code has been tested
against IE7 and Firefox.Internet Explorer(IE) contains the showModalDialog()
method which proves very effective while creating a modal dialog box and
displaying a html document in it. One caveat being, showModalDialog() is not a
W3C implementation. So it is not supported in Firefox (as of version 2.0.0.11).
Firefox supports the window.open() method. However there is no built in
functionality in Firefox that keeps the popup modal. At the most, you can use
‘modal=yes’ to make the popup appear in front. However unlike the
showModalDialog() in IE, you cannot restrict the user to access the parent page
when the popup is opened in Firefox. In short, it is not truly modal. There are
different ways to get around this problem, however in this article, we will only
focus on exchanging values between the parent and popup page.In this article, we
will see how to take a simple approach and create a popup window using both IE
and Firefox. In the first part, we will pass in the first name from the parent
page to the popup window. In the second part, the popup window will reverse the
name and return the reversed string to the parent window. The entire article and
the source code are available over here:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=99
HTH,
Suprotim Agarwal
-----
http://www.dotnetcurry.com
-----
|
| Post Reply
|
| Re: How to open popup windows in IE/Firefox and return values using ASP.NET and Javascript |
 |
Sun, 3 Feb 2008 16:28:17 +0000 |
cool..thanks.
|
| Post Reply
|
| Re: How to open popup windows in IE/Firefox and return values using ASP.NET and Javascript |
 |
Mon, 18 Feb 2008 20:14:58 +000 |
I was asked of how to open modal pop up's in mozilla. Check this post to open
modal popup's in mozilla.
HTH,
Suprotim Agarwal
-----
http://www.dotnetcurry.com
http://www.sqlservercurry.com
-----
|
| Post Reply
|
| Re: How to open popup windows in IE/Firefox and return values using ASP.NET and Javascript |
 |
Thu, 21 Feb 2008 15:27:17 +000 |
thanks for that tip.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|