Solved

ftp login site not workig in Firefox or on mac

Posted on 2007-11-19
3
1,977 Views
Last Modified: 2013-12-09
Hello.  I created a login page to validate a user's username and password for an ftp site.  The site works great in IE but does not work in Firefox or on a mac.  Any suggestions?  I even tried downloading the fireftp extenstion for Firefox but could not get the firefox browser to work on a pc.

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function Login(form) {
var server = "ftp.sundances.com";
var username = form.username.value;
var password = form.password.value;
if (username && password) {
var ftpsite = "ftp://" + username + ":" + password + "@" + server;
window.location = ftpsite;
}
else {
alert("Please enter your username and password.");
   }
}
</script>

<form name="login">
                  <table cellspacing="8" cellpadding="0" border="0" width="500" class="loginform">
                        <tr>
                              <td colspan="2"><h1>PLEASE SIGN IN</h1></td>
                        </tr>
                        <tr>
                       

                              <th>USERNAME:</th>
                              <td><input type="text" maxlength="255" name="username" value="" style="width:175px;"/></td>
                        </tr>
                        <tr>
                                                      <th>PASSWORD</th>
                              <td><input type="password" maxlength="255" name="password" value="" style="width:175px;"/></td>
                        </tr>
                        <tr>
                          <td></td>
<td><a href="#" onClick="Login(document.getElementById('login'));" class="linkbox"  style="width:175px;">Sign In</a>
                                    <input type="hidden" value="Login" name="login" onClick="Login(this.form)"/></form>
0
Comment
Question by:rgagli1
  • 2
3 Comments
 
LVL 17

Expert Comment

by:gops1
ID: 20317492
Add id attribute to your form tag:

<form id="login" name="login">
0
 
LVL 1

Author Comment

by:rgagli1
ID: 20323932
Is there a way to skip over the screen that lists the items and show the actual drop site where a user can add and remove files?
0
 
LVL 17

Accepted Solution

by:
gops1 earned 30 total points
ID: 20325038
You are asking for something different. Anyways I guess with just javascript you cannot achieve. You try this applet I found in this url:

http://sftp.thinfile.com/applet.php
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Samba Question 11 73
youtube blocking politics 4 55
Hide Table in merge 3 30
JavaScript Sort Ordering and Choice Limiting 5 17
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question