Home
Blogs
Forums
Files


Welcome to The Green Button          Sign in | Join | Help

Testing file existence in hosted HTML application

Last post 05-21-2008, 8:30 PM by justin31415. 1 replies.
Sort Posts: Previous Next
  •  11-27-2006, 12:51 PM 151671

    Testing file existence in hosted HTML application

    Hello,

    I am making an MCE 2005 plugin to display my home made video's (on DVD). I've put all my DVD's to disk. With the help of de SDK I now have a nice working application to search the DVD's and play them anywhere I want.

    Now I want to test or a file (DVD-file) exist with some javascript code.  The code is like this:
    best = "Filename"
    var fso = new ActiveXObject("Scripting.FileSystemObject")
    fileBool = fso.FileExists(best);
    if (fileBool==false) {alert("File: "+best+" does not exist!")}

    This script works fine but i get always the next ActiveX mesage:
    An Activex control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?

    Is there a way to suppress this message? I've tried all security sessings in Internet explorer but nothing seems to work.

    Thanks in advance,

    James.

     

  •  05-21-2008, 8:30 PM 264350 in reply to 151671

    Re: Testing file existence in hosted HTML application

    I know this is an old message, but I'm having the same issue. Does anyone know the answer?
View as RSS news feed in XML
About TGB | Advertise | Link To Us | Donate | Terms Of Use | Privacy Policy
© 2003-2007 The Green Button, Inc. - All Rights Reserved