By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,600 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,600 IT Pros & Developers. It's quick & easy.

Activex and catch insufficient permision to run it

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a


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

P: n/a
> 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 discussion thread is closed

Replies have been disabled for this discussion.