Connecting Tech Pros Worldwide Help | Site Map

javascript that updates files from ftp server to local drive

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 17th, 2006, 10:35 PM
elmer.piano@gmail.com
Guest
 
Posts: n/a
Default javascript that updates files from ftp server to local drive

We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.

Please help! Thanks.


  #2  
Old November 17th, 2006, 11:05 PM
pcx99
Guest
 
Posts: n/a
Default Re: javascript that updates files from ftp server to local drive

elmer.piano@gmail.com wrote:
Quote:
We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.
>
Please help! Thanks.
>
While you could write a script to check and process the files on the
server side, javascript and java have no access to the files on the
client's computer. You might be able to get away with it with an
activeX object but I rather doubt it.

This is actually a good thing. If javascript could reach outside the
browser to your hard drive the web would come crashing down because
every third site would be rooting around the contents of your hard-drive.



--
---------------------------------------------------------------------------
http://www.hunlock.com -- Permanently under construction (And proud of it!)
$FA
  #3  
Old November 17th, 2006, 11:15 PM
Dag Sunde
Guest
 
Posts: n/a
Default Re: javascript that updates files from ftp server to local drive

pcx99 wrote:
Quote:
elmer.piano@gmail.com wrote:
Quote:
>We have a directory of files on our ftp server. Is there a javacript
>to make a connection to the ftp server and compare files on a local
>drive and on the server? Files that have been changed or added need
>to be copied across from the ftp server to the local drive.
>>
>Please help! Thanks.
>>
>
While you could write a script to check and process the files on the
server side, javascript and java have no access to the files on the
client's computer. You might be able to get away with it with an
activeX object but I rather doubt it.
Doing this is actually very easy with a *signed* Java applet or
ActiveX control embedded in your page.

That said, the ActiveX alternative is a bad solution, since it will
lock you in to an IE/Windows only scenario.

There is absolutely _no way_ to do this in JavaScript.

--
Dag.


  #4  
Old November 18th, 2006, 11:15 AM
Daz
Guest
 
Posts: n/a
Default Re: javascript that updates files from ftp server to local drive


elmer.piano@gmail.com wrote:
Quote:
We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.
>
Please help! Thanks.
This will do what you want, but be warned, I do NOT recommend it as you
will be locked into IE, and it STINKS of Microsoft...

http://www.codeproject.com/jscript/search_in_files.asp

  #5  
Old November 18th, 2006, 11:15 AM
Daz
Guest
 
Posts: n/a
Default Re: javascript that updates files from ftp server to local drive


Daz wrote:
Quote:
elmer.piano@gmail.com wrote:
>
Quote:
We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.

Please help! Thanks.
>
This will do what you want, but be warned, I do NOT recommend it as you
will be locked into IE, and it STINKS of Microsoft...
>
http://www.codeproject.com/jscript/search_in_files.asp
Oh, and another alternative, which again, stinks of Microsoft, but
'might' not limit you to IE, would be to use a VBScript. I am not sure
if you need to use asp however, and if it would even work with browser
other than IE.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.