Solved

ftp login site not workig in Firefox or on mac

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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 +…

786 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