1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    This code works fine with IE 4.x but will not work with Navigator. Can someone please tell me what I am doing wrong?

    Thanks in advance...

    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

    <script language=javaScript>

    function GetFtp(name, pass) {

    case "PACCAR":
    if (pass == "paccar") {
    return "ftp://usernameassword@hostname";
    else {
    return "Invalid.htm";

    return "default.htm";

    } // End function

    <SPAN ID="sUserName" TITLE="<%=Request("txtUserName")%>" STYLE='width:0;padding-left:0;padding-bottom:0;display:none;position:absolute;background-color:#29526B;z-index:0;'>

    <SPAN ID="sPassword" TITLE="<%=Request("txtPassword")%>" STYLE='width:0;padding-left:0;padding-bottom:0;display:none;position:absolute;background-color:#29526B;z-index:0;'>

    <SCRIPT language=javascript>

    var UserName
    var Password
    var sLocation

    UserName = sUserName;
    Password = sPassword;

    sLocation = GetFtp(UserName.title, Password.title);

    if (sLocation == "default.htm") {
    document.write("You have entered the wrong User Name. ");
    document.write("Please <a href=default.htm> try again. <P></A>");
    else {
    // Go to ftp site using login information
    window.location.href = sLocation;


  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    its should be working
    try window.location(url) instead for Netscape

Similar Threads

  1. javascript problems and <nobr> tag trouble
    By WorldBuilder in forum JavaScript Development
    Replies: 5
    Last Post: October 29th, 2003, 10:43 AM
  2. delimiting javascript
    By scream in forum JavaScript Development
    Replies: 3
    Last Post: August 15th, 2003, 05:03 PM
  3. JavaScript and CSS TROUBLE....NUBIE
    By boulder in forum JavaScript Development
    Replies: 1
    Last Post: July 30th, 2003, 12:15 PM
  4. Replies: 0
    Last Post: July 25th, 2003, 10:19 PM
  5. getting javascript error when using PHP and javascript
    By Dalamar in forum JavaScript Development
    Replies: 8
    Last Post: December 17th, 2001, 08:41 AM

IMN logo majestic logo threadwatch logo seochat tools logo