Re: Contents of a Directory

From: Tom Kaminski [MVP] ((A_at_T))
Date: 12/02/04


Date: Thu, 2 Dec 2004 14:34:54 -0500


"Steven Livolsi" <steven.livolsi@ngc.com> wrote in message
news:O6HEqJJ2EHA.204@TK2MSFTNGP10.phx.gbl...
> Thanks.
>
> I tried using the File System Objects in my java scipt but it looks like
> the java script code bombed.
>
> It bombed on the statement:
>
> fso = new ActiveXObject("Scripting.FileSystemObject");
>
> If I comment out the above statement, my java script function does not
bomb.
>
> Is there a setting or something I need to do with my windows 2003 IIS
sever?
> Is there an include file I need?
>
> My java script is:
>
> <script language=javascript>
>
> function select_change()
> {
> .
> .
> .
> var fso;
> fso = new ActiveXObject("Scripting.FileSystemObject");
> .
> .
> .
> }
>
> </script>
>

You're trying to run this client-side? You can't use the FileSystemObject
in client-side browser code as that would be a security breach. You would
have to wrap it in a custom ActiveX and sign it.



Relevant Pages

  • Re: RubyOnRails and Intraweb
    ... What does AJAX or a Web site have to do with sticking design in a Database? ... Another difference might be if you are using a Client/Server approach, where the Client is a true rich client running inside/outside the browser, and downloaded to the local machine and using HTTP as the transfer protocol, much like a Flash, Java Applet, or Java Web Start application. ... I still do not know how you can control the basic framework they are using, because I do not know what the basic framework is. ... Click on the XHTML tags, add your Java Script code, code your JS functions, point to your server, and then within the IDE, debug the application; ...
    (borland.public.delphi.non-technical)
  • Re: Web Animation and Sound Advice Sought
    ... using raw HTML coding. ... what's the usual learning curve with Java Script? ... to create an animation with a sound file in a couple of days? ...
    (misc.writing)
  • Re: Article: - David Intersimone on DevCo, the viability of Delphi, and Turbo Ruby
    ... A Killer IDE, IMHO, would be an Ajax IDE that was as RAD as Delphi/BCB ... I can name just as many for Java as you did for NET. ... Have you ever tried to debug Java Script? ...
    (borland.public.delphi.non-technical)
  • Re: Article: - David Intersimone on DevCo, the viability of Delphi, and Turbo Ruby
    ... A Killer IDE, IMHO, would be an Ajax IDE that was as RAD as Delphi/BCB ... I can name just as many for Java as you did for NET. ... Have you ever tried to debug Java Script? ...
    (borland.public.delphi.non-technical)
  • Re: Another scripting language implemented into Python itself?
    ... I'm really not sure but there might be some way to embed Java Script within ... Or to run Jython from inside Java much like the jEdit editor. ... >>common operations that ought to be very simple terribly unweildy. ...
    (comp.lang.python)