Results 1 to 4 of 4

Thread: Help! ActiveX common dialog control works on intranet, but not anywhere else!

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11

    Question

    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!

  2. #2
    Guest
    If you're just working on an html application i suggest doing it the easy way,

    Code:
    <html>
    <body>
    <input type="file">
    </body>
    </html>
    ...this will generate an open dialog in both netscape and ie.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11

    Lightbulb

    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?

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11

    Lightbulb

    Oops again (sorry for all these replys) but I finally figured out I didn't setup the license for these objects properly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width