Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ftp login site not workig in Firefox or on mac

Posted on 2007-11-19
3
Medium Priority
?
1,985 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 120 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
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…

610 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