Microsoft common dialog

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
 
R

Ruslan Shlain

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
 
E

Egbert Nierop \(MVP for IIS\)

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.
 

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

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
Sean29G025

Latest Threads

Top