Hi all...
I am bulding an application and wish to use custom Modal dialog windows.
According to a couple of recent articles I have seen, the newer Mozilla
browsers (actually I think they said Netscape) supported syntax like :
window.open(URL ,"diagwin","modal=1, width=30");
For IE I use :
window.showModalDialog
I assumed that since Firefox is a modern browser that it would support
custom modal windows.
Does anyone know what I am doing wrong?
Thanks... 4 10615
On May 3, 9:30 am, "John Kotuby" <j...@powerlist.comwrote:
Hi all...
I am bulding an application and wish to use custom Modal dialog windows.
For cross-browser support, build them using HTML elements.
According to a couple of recent articles I have seen, the newer Mozilla
browsers (actually I think they said Netscape) supported syntax like :
window.open(URL ,"diagwin","modal=1, width=30");
Try:
<URL: http://developer.mozilla.org/en/docs...ing_privileges
>
[...]
I assumed that since Firefox is a modern browser that it would support
custom modal windows.
You assume that support for modal windows is a sign of modernity.
--
Rob
John Kotuby wrote :
Hi all...
I am bulding an application and wish to use custom Modal dialog windows.
According to a couple of recent articles I have seen, the newer Mozilla
browsers (actually I think they said Netscape) supported syntax like :
window.open(URL ,"diagwin","modal=1, width=30");
1- modal requires extended security privileges
2- there should be no blank space separating window features in the 3rd
parameter of the function called.
wrong: "modal=1, width=30"
correct: "modal=1,width=30"
" strWindowFeatures
Optional parameter. This parameter is the string which lists the
requested window features (window functionalities and toolbars) of the
new browser window. This string parameter must not contain any blank
space. Each requested window feature must be separated by a comma inside
the character string." http://developer.mozilla.org/en/docs...ow.open#Syntax
3- width must be greater than 100pixels. Non-chrome windows must all be
greater than 100px.
For IE I use :
window.showModalDialog
I assumed that since Firefox is a modern browser that it would support
custom modal windows.
Does anyone know what I am doing wrong?
As mentioned by Rob, all of the info necessary is at:
DOM:window.open http://developer.mozilla.org/en/docs/DOM:window.open
Gérard
--
Using Web Standards in your Web Pages (Updated Dec. 2006) http://developer.mozilla.org/en/docs...your_Web_Pages
Gérard Talbot wrote:
2- there should be no blank space separating window features in the 3rd
parameter of the function called.
wrong: "modal=1, width=30"
correct: "modal=1,width=30"
" strWindowFeatures
Optional parameter. This parameter is the string which lists the
requested window features (window functionalities and toolbars) of the
new browser window. This string parameter must not contain any blank
space. Each requested window feature must be separated by a comma inside
the character string." http://developer.mozilla.org/en/docs...ow.open#Syntax
Thanks Gérard, as per usual, great information. I actually did not know
that strWindowFeatures http://developer.mozilla.org/en/docs...and_parameters
....was not supposed to contain blank spaces. I have always used blank
spaces with no error. Are there any known issues where using additional
spaces causes problems?
Pointless (as most of my information requests are), but I was just
curious. I know in the future to not use extraneous whitespace.
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Thank you all for the education. Now that I understand how modality presents
a security risk it makes sense that the newer browsers require special
priviledges for its use. The links to the articles are greatly appreciated.
Sometimes finding the right documentation can be the most difficult part of
development.
I may choose another route, possibly using a visibility=hidden (or lower
z-order?) <divor some other element that will appear when necessary, and
process everything inside the same window. It seems that cross-browser
compatibility is still an issue after all these years of browser evolution
and W3C standards.
"Gérard Talbot" <ne***********@gtalbot.orgwrote in message
news:13*************@corp.supernews.com...
John Kotuby wrote :
>Hi all...
I am bulding an application and wish to use custom Modal dialog windows. According to a couple of recent articles I have seen, the newer Mozilla browsers (actually I think they said Netscape) supported syntax like :
window.open(URL ,"diagwin","modal=1, width=30");
1- modal requires extended security privileges
2- there should be no blank space separating window features in the 3rd
parameter of the function called.
wrong: "modal=1, width=30"
correct: "modal=1,width=30"
" strWindowFeatures
Optional parameter. This parameter is the string which lists the
requested window features (window functionalities and toolbars) of the new
browser window. This string parameter must not contain any blank space.
Each requested window feature must be separated by a comma inside the
character string." http://developer.mozilla.org/en/docs...ow.open#Syntax
3- width must be greater than 100pixels. Non-chrome windows must all be
greater than 100px.
>For IE I use : window.showModalDialog
I assumed that since Firefox is a modern browser that it would support custom modal windows. Does anyone know what I am doing wrong?
As mentioned by Rob, all of the info necessary is at:
DOM:window.open http://developer.mozilla.org/en/docs/DOM:window.open
Gérard
--
Using Web Standards in your Web Pages (Updated Dec. 2006) http://developer.mozilla.org/en/docs...your_Web_Pages This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: amith |
last post by:
Hi,
I have a javascript, calendar.js which i use to enable my client to
select the date. This calendar pops up on the click of a gif image.
But the problem is that this poped up window is not...
|
by: Smellyfrog |
last post by:
Hi,
I'm a newbie in mozilla web development. I've been developping apps
for IE and Netscape for years though.
After searching the internet (groups google etc..), I found a way to
pop a modal...
|
by: beginner |
last post by:
please help me.
can't cast char to string , or something like that - can't remember
exactly and not on my .net pc. But basically, i thought that "x" would be
treated as a char in this case and...
|
by: sunnyz |
last post by:
i am using property in Webservice.But attribute doesn'
work for properties.Cud any1 tell me plz which attribute to use for
properties
thx
*-----------------------*
Posted at:...
|
by: sunnyz |
last post by:
i am using property in Webservice.But attribute doesn'
work for properties.Cud any1 tell me plz which attribute to use for
properties
thx
*-----------------------*
Posted at:...
|
by: Guy |
last post by:
Hi,
I'm trying to run this code :
strFileContentsHTML.Replace(vbLf, "<br>")
strFileContentsHTML.Replace(vbCrLf, "<br>")
strFileContentsHTML.Replace(vbCr, "<br>")
It doesn't replace newline...
|
by: HermannJens |
last post by:
im trying to install a module.
The directions for installing modules say:
download the file,
extract it,
put the file under "c:/perl/lib/module-here"
go to "cmd"
type there:
perl makefile.pl...
|
by: Eric |
last post by:
I'm new to JavaScript and I wrote this code to play with. Oddly, if I
enter text in a box and then press the button, I only get the onChange
event for the text box and not the button's onclick...
|
by: magix |
last post by:
Hi,
My popup window (Modal) target is not working.
Page1.asp
========
I have javascript:
function PopNewWin(url)
{
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
| |