Solved

Making activeX object Safe

Posted on 2004-09-17
3
383 Views
Last Modified: 2012-06-22
Dear Experts

I am wrote a simple client side code that checks if a file exists in a folder if it does, do something if not do something else  (see code snippet below)

As you probably know, I need to have IE settings changed on the client browser to allow this..I have been asked to mark this as safe, I have no idea where to start..is this possibe, sample code please

objFSO = new ActiveXObject("Scripting.FileSystemObject");
                  
                  if (objFSO.FileExists(strFileName))
                  {
                        do something
                  }
                  else
                  {
                        do something else
                  }
            }
            catch(e)
            {            
                  // Internet settings need to be adjusted to allow ActiveX to run.
                  alert("ERROR: " + e.description + " :Please check your Internet Explorer Security Active Controls Setting.");
            }
0
Comment
Question by:bmukoro
3 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 500 total points
ID: 12082569
Seems a bit outdated, but the general concept should be the same. Get it signed and certified, I guess...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaxctrl/html/msdn_signmark.asp
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now