Click to See Complete Forum and Search --> : common dialog in dhtml


ibbly
July 12th, 2000, 07:59 AM
I'm trying to use the common dialog control in a dhtml page, so that a user can select a location for the file. I used the following
dim x
set x = CreateObject("mscomdlg:commondialog")
x.showopen

The common dialog failed during initialization.

But if I change showopen to showprinter, it does show the printer box.

Could someone please direct me to what might be causing my problem.

As always, any help is greatly appreciated.

Thank you.

Lothar Haensler
July 13th, 2000, 03:23 AM
I use a different approach:
place an object tag on your html ´page:
<object id="d" classid="clsid:F9043C85-F6F2-101A-A3C9-08002B2F49FB">
</object>


then, when you want to show the open dialog:
document.all.d.showopen