hi all,
i do have an aspx page with "Microsoft common dialog"
that i added to
my components.
when i'm adding new component i get:
<OBJECT name="dialog" style="Z-INDEX: 108; LEFT: 83px;
WIDTH: 49px; POSITION: absolute; TOP: 274px; HEIGHT:
42px" classid="clsid:F9043C85-F6F2-101A-A3C9-
08002B2F49FB" VIEWASTEXT>
</OBJECT>
i do have a button that just opens that dialog box:
<INPUT style="Z-INDEX: 106; LEFT: 150px; POSITION:
absolute; TOP: 303px" onclick="x();" type="button"
value="Open">
my question is: why this javascript code cannot work ?
function x()
{
document.addFiles.dialog.open();
...
}
thanks,
Oren
Joe Fawcett - 19 Nov 2003 16:37 GMT
> hi all,
>
[quoted text clipped - 26 lines]
> thanks,
> Oren
Better to give it an id of "dialog" rather than a name, then you can use:
document.all.dialog.open()
OR, on a more modern standards compliant browser:
document.getElementById("dialog").open();

Signature
Joe