Click here to Skip to main content
13,506,716 members
Click here to Skip to main content
Add your own
alternative version


19 bookmarked
Posted 14 Jan 2004

A Simple FTP Solution

, 23 Oct 2008
Rate this:
Please Sign up or sign in to vote.
This is a tiny utility to send or to bring files among your computer and your provider. See it in action: If you find it useful, please vote!

Sample Image - easyftp.jpg

The HTML file

<link rel='stylesheet' href='ftp.css'>
<script language='javascript' src='ftp.js'></script>
<title>Easy FTP 1.0</title></head>

<body bgcolor='#ffffff'>
    <br><font class='title'><b>Easy FTP 1.0</b></font><hr>
    After connecting, you can drag'n drop files among the windows. 
    Left window is your local folder, right window is the remote folder.
    <p><table border='0' cellpadding='0' cellspacing='1' 

              align='center' width='98%'><form name=login>
        <tr><td class='brgtcell' align='right'>&nbsp;Username&nbsp;</td>
        <td class='darkcell'>&nbsp;<input type='text' 

          name='username' value='anonymous' size='20' 

        <tr><td class='brgtcell' align='right'>&nbsp;Password&nbsp;</td>
        <td class='darkcell'>&nbsp;<input type='text' 

          name='password' value='microsoft' size='20' 

        <tr><td class='brgtcell' align='right'>&nbsp;Server&nbsp;</td>
        <td class='darkcell'>&nbsp;<input type='text' 

          name='server' value='' size='60' 

        <tr><td class='brgtcell' align='right'>&nbsp;Local&nbsp;</td>
        <td class='darkcell'>&nbsp;<input 

          type='text' name='local' value='c:\' size='60' 

    <hr><table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>
    <td align='right'><input style='color:#000000' 

      type='button' value='Connect' onClick='Login(this.form)'></td>

The JS File

function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    var server = form.server.value;
    var local = form.local.value;
    if (username && password && server && local) {
  , '_blank', 
              'toolbar=yes,location=yes,status=yes,' + 
              + ((screen.AvailWidth/2)-12) + ',height=' + 
              (screen.AvailHeight-124) +',left=0,top=0,resizable=yes');
  "ftp://" + username + ":" + 
              password + "@" + server, '_blank', 
              'toolbar=yes,location=yes,status=yes,' + 
              + ((screen.AvailWidth/2)-12) + ',height=' 
              + (screen.AvailHeight-124) +',left=' + ((screen.AvailWidth/2)) 
              + '),top=0,resizable=yes');
        else {
            alert("NO BLANK FIELDS!");


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Industria Virtual
Web Developer Industria Virtual
Brazil Brazil
Taylor made web applications for you and your business.

You may also be interested in...


Comments and Discussions

Questionblank Pin
Member 1151389310-Mar-15 7:48
memberMember 1151389310-Mar-15 7:48 
GeneralMy vote of 1 Pin
Member 106511247-Mar-14 1:41
memberMember 106511247-Mar-14 1:41 
GeneralAnother FTP/Javascript solution Pin
h_c_a_andersen7-Nov-09 9:09
memberh_c_a_andersen7-Nov-09 9:09 
GeneralMy vote of 1 Pin
M_Menon22-Jun-09 1:21
memberM_Menon22-Jun-09 1:21 
GeneralAccess Denied Pin
NVRReddy16-Mar-07 0:15
memberNVRReddy16-Mar-07 0:15 
Generalproblem with the Articale Pin
V.V.Thakur31-May-06 1:07
memberV.V.Thakur31-May-06 1:07 
Questionsupported browser ??? Pin
mkcx10-Mar-04 0:49
membermkcx10-Mar-04 0:49 
AnswerRe: supported browser ??? Pin
Marcelo Franco10-Mar-04 5:35
memberMarcelo Franco10-Mar-04 5:35 
GeneralSample URL does not work Pin
Gerard Nicol16-Jan-04 10:56
memberGerard Nicol16-Jan-04 10:56 
GeneralRe: Sample URL does not work Pin
Marcelo Franco17-Jan-04 2:48
memberMarcelo Franco17-Jan-04 2:48 
GeneralRe: Sample URL does not work Pin
Gerard Nicol17-Jan-04 11:29
memberGerard Nicol17-Jan-04 11:29 
GeneralRe: Sample URL does not work Pin
Marcelo Franco18-Jan-04 4:02
memberMarcelo Franco18-Jan-04 4:02 
GeneralRe: Sample URL does not work Pin
Gerard Nicol18-Jan-04 10:52
memberGerard Nicol18-Jan-04 10:52 
GeneralRe: Sample URL does not work Pin
Weishun10-Nov-04 2:47
memberWeishun10-Nov-04 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180417.1 | Last Updated 23 Oct 2008
Article Copyright 2004 by Industria Virtual
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid