473,811 Members | 3,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Activex and catch insufficient permision to run it

Hello,
There is two lines from my script:

<script language="javas cript1.2">
fso = new ActiveXObject(" Scripting.FileS ystemObject");
ws = new ActiveXObject(" WScript.Network ");
</script>

Everything working fine, but sometimes some admin change default IE options
and during loading the page on screen i can see something like that "Can I
run the activex and bla bla bla".
This message for my user equal error and I get many phones :(
Can I catch insufficient permision, or that message and hide it?

Thx for your help
Adam
ps. sorry for my english
Jul 20 '05 #1
3 2151
Adam Kozlowski hu kiteb:
Hello,
There is two lines from my script:

<script language="javas cript1.2">
fso = new ActiveXObject(" Scripting.FileS ystemObject");
ws = new ActiveXObject(" WScript.Network ");
</script>

Everything working fine, but sometimes some admin change default IE
options and during loading the page on screen i can see something
like that "Can I run the activex and bla bla bla".
This message for my user equal error and I get many phones :(
Can I catch insufficient permision, or that message and hide it?


You can't block that message. It is a feature of the security system.
Your best bet is to have a notice on the previous page stating that
certain security settings must be set for the page to work properly.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #2


Adam Kozlowski wrote:
Hello,
There is two lines from my script:

<script language="javas cript1.2">
fso = new ActiveXObject(" Scripting.FileS ystemObject");
ws = new ActiveXObject(" WScript.Network ");
</script>

Everything working fine, but sometimes some admin change default IE options
and during loading the page on screen i can see something like that "Can I
run the activex and bla bla bla".
This message for my user equal error and I get many phones :(
Can I catch insufficient permision, or that message and hide it?


Use
<script type="text/jscript">
var fso;
try {
fso = new ActiveXObject(" Scripting.FileS ystemObject");
...
}
catch (e) {
// you can handle the error here for instance read out
// e.description
}
</script>

But don't expect any IE user visiting pages from a HTTP server to have
IE configured to allow creation of Scripting.FileS ystemObject

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3
> Use
<script type="text/jscript">
var fso;
try {
fso = new ActiveXObject(" Scripting.FileS ystemObject");
...
}
catch (e) {
// you can handle the error here for instance read out
// e.description
}
</script>

But don't expect any IE user visiting pages from a HTTP server to have
IE configured to allow creation of Scripting.FileS ystemObject

--

I know this, but this is intranet site and ie options are get from domain
serwer.
Every user have to add my site to intranetsite and configure ir, but admins
sometimes override this options, and there is a problem :( They fix the
problem, but not now :( maybe today evening, maybe tommorow...
Big big thx you resolve my problem :))))))
and now i have silent and my phone not ringing (is it broken?)
Adam
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1367
by: Ted | last post by:
I'm using a 3rd party ActiveX control which has it's own constructor and two very methods (which ultimately sends out messages on the server's USB or serial port). I am trying to run this ActiveX component in my ASP.NET applicaiton. For now, I'm testing this application via localhost connection. At first, within the Page_Load method, I successfully instantiate it using the constructor: try { oABC = new ABCClass();
3
2099
by: Neo | last post by:
I have a usercontrol that I am trying to use as an ActiveX Control on a WebPage, however it refereneces an Assembly that whenever the first call is made to anything in the Assembly a Security Exception is throw. I am having a lot of trouble debugging this, because I cannot catch the exception in my code. However if I could run the control under the Internet Zone Security settings I could probably find this easily. Does anyone know how to...
1
2962
by: Wm. Scott Miller | last post by:
I have a Custom DTS Task for SQL Server and I've got it working fine, except for when I try to access its properties from an ActiveX script. I have added a new property called Length and a method called Generate that returns a string. Whenever I get the object in the ActiveX script, the only properties and methods I can use are for the CustomTask interface, not the extended properties I've added. Does anyone know why these properties...
1
15670
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original VB6 was written. I ahve already exposed some of the original classes, and they work fine. Now, I added a new ActiveX component to the windows app (in vb6). I am able to call it by late binding from within the vb6 app. itself, and from a dummy vbs...
1
3152
by: Simon | last post by:
Hi all, I recently posted about an issue I was having which no-one could help with, but I have researched some more and have discovered something very strange... I have a C# dll in the GAC and registered for COM Interop. This I know for sure has no memory leaks etc. as a simple test page can load, use and then dispose of the object without a problem.
3
1649
by: avenpace | last post by:
Hi I have python cgi script, but when I call it I got server internal error. The log in my apache is (13)Permission denied: exec of '/srv/www/cgi-bin/helo.cgi' failed Premature end of script headers: helo.cgi caught SIGTERM, shutting down
1
6872
by: UnaCoder | last post by:
Hi, I noticed that this particular object is only accessable if the IE security setting "Initialize and and script ActiveX controls not marked as safe" is enabled. Does windows maintain this list somewhere? Is it hard coded, or can you edit it? Also, is there a way for the script to ask the user if they want to change the security setting to allow the ActiveX control to be used? For example, if "Initialize and script ..." is marked...
0
1469
by: TerryHunter | last post by:
Situation: 1. VB.net MID with ActiveX on MDI Child 2. On error loading a doc into the ActiveX, the failure prevents disposal of the MDI child, despite using Try...Catch. Must restart the app, and the app doesn't easily shut down, on top of that. My problem is NOT the ActiveX error itself. I could fix it, if I could react to it, rather than having it freeze my system. One approach might be a nested Try...Catch I did try another, nested...
3
8369
by: Chad Johnson | last post by:
I know this question has been asked a million times but I still can't get an event from an embedded ActiveX Exe to be caught in javascript. I am able to access all the properties and methods of the ActiveX Exe, I just can't seem to catch the event. I've declared my object as follows: <OBJECT ID = "Test3" CODEBASE = "http://www.amys-attic.com/Test3.exe"
0
9731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10405
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5556
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.