Re: Checking if a file exist



wrote on 25 okt 2005 in comp.lang.javascript:
> Hey All,

Not my name,

> I'm a bit new at this,and i tryed seraching google about it but i
> didn't quite got a solution.
> I'm writing an HTML page that needs to check if another html file exist
> (in the same folder) and if not,to call to a C file and create that
> html file.
> I tryed to do that with JavaScript but i understood there is no such
> option.

> Can u advice?

This is not sms, please use only usenet abbreviations.

> and once i know that file doesn't exist,can i call to a C file from a
> simple html page?

> Thanks a lot!

[We didn't do anything yet, so why the thanks.]

If you are talking javascript in a browser on a page from a server on
internet, the js has no security clearance for files on the client.

Javascript on a local .hta file or in wscript is a different matter.

The same goes for serverside javascrpt [on an ASP platform]

Which of the 4 is your Q about?

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

.



Relevant Pages

  • Re: Checking if a file exist
    ... >> I'm a bit new at this,and i tryed seraching google about it but i ... >> I'm writing an HTML page that needs to check if another html file exist ... >> I tryed to do that with JavaScript but i understood there is no such ... > The same goes for serverside javascrpt ...
    (comp.lang.javascript)
  • Re: Adding comandbar to RichText Inspector cause error.
    ... simply create html file, insert this code it and then just open html file ... This javascript gets last item from inbox, show it and tried to add Command ... "Dmitry Streblechenko" wrote: ... OutlookSpy - Outlook, CDO ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: VMS 7.3 vs 8.x - java in HTML files, Hmm.
    ... HTML file near the beginning. ... I would extract that one line of evil javascript, ... You didn't mention which TCPIP stack you have and whether you installed ... some separate/different FTP software. ...
    (comp.os.vms)
  • Re: Checking if a file exist
    ... I need to write an Html file ... When a page is loaded, a chunk of Javascript on the page looks to see ... by the server. ... Javascript can tell the server to execute the script via XMLHTTPRequest ...
    (comp.lang.javascript)