showModalDialog issues

G

Guest

I'm trying to use the showModalDialog window opener and for some reason even
though I have these set to no (an dI've tried 0 and false) the window still
shows them. Why? The window opens ok. I see scroll bars, status, and the help
button. But the size is correct and it's sunken and not resizable.
?????????????

companyadd.Attributes.Add("onclick",
"window.showModalDialog('company_add.aspx','dialogHeight:400px;
dialogWidth:500px; scroll:no; help:0; resizable:no; center:yes; edge:sunken;
status:no')")

thanx.
 
B

bruce barker

xp-sp2 prevents turning off the statusbar, titlebar and several of the
buttons.

-- bruce (sqlwork.com)


| I'm trying to use the showModalDialog window opener and for some reason
even
| though I have these set to no (an dI've tried 0 and false) the window
still
| shows them. Why? The window opens ok. I see scroll bars, status, and the
help
| button. But the size is correct and it's sunken and not resizable.
| ?????????????
|
| companyadd.Attributes.Add("onclick",
| "window.showModalDialog('company_add.aspx','dialogHeight:400px;
| dialogWidth:500px; scroll:no; help:0; resizable:no; center:yes;
edge:sunken;
| status:no')")
|
| thanx.
 
G

Guest

Are you sure? I would think that this is browser revision dependent. I'm also
using Win2k not XP.
I would think that there would be a MS Article on this??

Thanx.
 
E

Eliyahu Goldin

There should be one more parameters between the url and features:

window.showModalDialog('company_add.aspx','','dialogHeight:400px;dialogWidth
:500px; scroll:no; help:0; resizable:no; center:yes; edge:sunken;
status:no');

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top