Microsoft common dialog

  • Thread starter Thread starter Oren
  • Start date Start date
O

Oren

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
 
It does not work because it looks like you are using a COM component. I do
not belive you can manipulate COM components with JavaScript
 
Oren said:
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 ?

Maybe because the common dialogs classes have no 'save for scripting'
marking built into the code. There's nothing you can do about it. MS just
did built that security to not to have every windows component be running
with the very unsecure IE + HTTP environment.
 
Back
Top