Results 1 to 5 of 5

Thread: Problems with ActiveX popup message

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    79

    Question Problems with ActiveX popup message

    Dear gurus & members,
    I am new in activeX and internet matters. I created a vbscript function that will call an exe file on client's computer from my website. When I click on button that runs the vbscript to launch the exe, there is an activeX pop up that appears saying 'An ActiveX control on this page might be unsafe. Do you want to allow this interaction? Yes/No'. If I click No, there is a runtime error. How should I solve this problem? Would be very glad if someone could guide me. Looking forward to some replies soon.

    Thanks in advance,
    Janice

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    There is nothing you can do about the pop up. It is a security feature.

    But you can use On Error statements around the code that tries to call the executable. You can trap the error if the use clicks no.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    79
    Hi crptcblade,
    Thanks for the information. I wonder how can I work on the On Error statements. How can I trap the error if the use clicks no. Could you give an example of the code?

    Thanks in advance,
    Janice

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Here's a simple one
    Code:
    <html>
    	<head>
    		<script language="VBScript">
    		    On Error Resume Next
    			Set x = CreateObject("Scripting.FileSystemObject")
    
    			document.title = Err.Description
    			On Error GoTo 0
    		</script>
    	</head>
    </html>
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    79
    Thanks crptcblade,
    It works.

    Cheers,
    Janice

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