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!
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!