|
-
Aug 4th, 2004, 09:20 PM
#1
Thread Starter
Lively Member
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
-
Aug 4th, 2004, 09:41 PM
#2
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
-
Aug 4th, 2004, 09:48 PM
#3
Thread Starter
Lively Member
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
-
Aug 4th, 2004, 10:05 PM
#4
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
-
Aug 4th, 2004, 10:21 PM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|