Solved

ftp login site not workig in Firefox or on mac

Posted on 2007-11-19
3
1,969 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now