473,473 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is it bad to use ShowModalDialog?

I haven't used it in a while and thought I would check on it. Some say
not to use ShowModalDialog (or at least they used to). But I just saw
where Firefox has support for a similar type windows (window.dialog?).
There was no firefox when I used ShowModalDialog last. And everyone
said SMD was "evil."

Should neither be used on either browser? Why is it supposedly bad to
use a modal dialog box if that is what I need? Thanks.

Nov 19 '05 #1
6 1561
<ne***********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Why is it supposedly bad to use a modal dialog box if that is what I need?


Because, until very recently, it's only been supported on MSIE. If
cross-browser compatibility isn't an issue, there's no reason not to use it.
Nov 19 '05 #2
Ya, modal dialog is still a cross browser nightmare...

also, some might say it breaks with traditional web UIs and might
confused/surprise some..err...lesser? users :)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uD*************@TK2MSFTNGP15.phx.gbl...
<ne***********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Why is it supposedly bad to use a modal dialog box if that is what I
need?


Because, until very recently, it's only been supported on MSIE. If
cross-browser compatibility isn't an issue, there's no reason not to use
it.

Nov 19 '05 #3
There are also problems with how it interacts with ASP.NET. A dialog has
problems "posting back".

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:O8*************@tk2msftngp13.phx.gbl...
Ya, modal dialog is still a cross browser nightmare...

also, some might say it breaks with traditional web UIs and might
confused/surprise some..err...lesser? users :)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uD*************@TK2MSFTNGP15.phx.gbl...
<ne***********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Why is it supposedly bad to use a modal dialog box if that is what I
need?


Because, until very recently, it's only been supported on MSIE. If
cross-browser compatibility isn't an issue, there's no reason not to use
it.


Nov 19 '05 #4
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
There are also problems with how it interacts with ASP.NET. A dialog has
problems "posting back".


But that's very easily got round...
Nov 19 '05 #5
Right, just use an Iframe.

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
There are also problems with how it interacts with ASP.NET. A dialog has
problems "posting back".


But that's very easily got round...

Nov 19 '05 #6
Work around for that is to use an IFRAME

"Peter Rilling" wrote:
There are also problems with how it interacts with ASP.NET. A dialog has
problems "posting back".

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:O8*************@tk2msftngp13.phx.gbl...
Ya, modal dialog is still a cross browser nightmare...

also, some might say it breaks with traditional web UIs and might
confused/surprise some..err...lesser? users :)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uD*************@TK2MSFTNGP15.phx.gbl...
<ne***********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...

Why is it supposedly bad to use a modal dialog box if that is what I
need?

Because, until very recently, it's only been supported on MSIE. If
cross-browser compatibility isn't an issue, there's no reason not to use
it.



Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Simon Storr | last post by:
Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a 'normal' window, but this doesn't work for...
6
by: Scott Lee | last post by:
I am displaying an ASP.Net generated form in a popup opened with window.showModalDialog. The form contains DropDownList controls. The first ddl is populated via databinding to a datatable, has...
4
by: MW de Jager | last post by:
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the...
3
by: needin4mation | last post by:
Hi, I have an asp:button that has a ShowModalDialog script attribute added to it. When the ShowModalDialog opens the user is supposed to select some data which is then sent back to the calling...
2
by: Sarah | last post by:
I am using the javascript showModalDialog function to open a file upload window. The function opens a page which contains a usercontrol housing the file upload stuff. The control works fine when...
3
by: johkar | last post by:
Just want a verification of logic. This seems to work for IE and Firefox, but I wonder if it would be a problematic test in any of the other latest browsers? Is the use of the "window" object...
1
by: John | last post by:
Hi, I'm having a problem opening / downloading csv files when called from a page opened with window.showModalDialog( ). To isolate this problem, I've written 3 files (see below). 1. main.htm...
6
by: David | last post by:
Hi all, I am opening a webform with showModalDialog. This appears to pop-up fine, though I have a problem... Inside the webform is a treeview control. When the treeview is populated, I am...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.