470,647 Members | 1,112 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

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 2022
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Wm. Scott Miller | last post: by
1 post views Thread by Rocio | last post: by
1 post views Thread by Simon | last post: by
3 posts views Thread by avenpace | last post: by
3 posts views Thread by Chad Johnson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.