473,473 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Activex and catch insufficient permision to run it

Hello,
There is two lines from my script:

<script language="javascript1.2">
fso = new ActiveXObject("Scripting.FileSystemObject");
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 2115
Adam Kozlowski hu kiteb:
Hello,
There is two lines from my script:

<script language="javascript1.2">
fso = new ActiveXObject("Scripting.FileSystemObject");
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="javascript1.2">
fso = new ActiveXObject("Scripting.FileSystemObject");
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.FileSystemObject");
...
}
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.FileSystemObject

--

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

Jul 20 '05 #3
> Use
<script type="text/jscript">
var fso;
try {
fso = new ActiveXObject("Scripting.FileSystemObject");
...
}
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.FileSystemObject

--

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
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...
3
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...
1
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...
1
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...
1
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...
3
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...
1
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...
0
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,...
3
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...
0
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,...
1
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...
0
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.