PDA

Click to See Complete Forum and Search --> : Help! ActiveX common dialog control works on intranet, but not anywhere else!


MichaelK
Jun 9th, 2000, 10:19 AM
Hi,
I'm just trying to do something simple, I want a button which will open a standard "open" dialog box on a web page. When I have the following:
....
<OBJECT id="Dialogtest" classid=clsid:F9043C85-F6F2-101A-A3C9-08002B2F49FB CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab></OBJECT>

<Input type=button width=100 height=100 onclick="prompt()">

<script language=vbscript>
sub prompt()
Dialogtest.ShowOpen()
end sub
</script>
....
It works fine on my local intranet, but not anywhere else. I know it's not a security problem because I set my browser to the lowest possible security. I get an error because the object is not loaded. (a box with a dot in the middle appears where the object should be) and when I click on the button it says that object doesn't support that method. I also know that I have that ocx file and that it is registered properly. I have tried this on many computers, can anyone tell me what's wrong?

Thanks!

Jun 9th, 2000, 02:18 PM
If you're just working on an html application i suggest doing it the easy way,


<html>
<body>
<input type="file">
</body>
</html>


...this will generate an open dialog in both netscape and ie.

MichaelK
Jun 10th, 2000, 12:55 AM
OOps, figured out the problem (I think) thanks anyways! I forgot to include the dlls and such needed for that ocx file. Anyone know what libraries I need for comdlg32.ocx?

MichaelK
Jun 10th, 2000, 12:58 AM
Oops again (sorry for all these replys) but I finally figured out I didn't setup the license for these objects properly.