• I’m trying to get a 3rd party login script to work here.

    The code is supplied by the vendor. It’s a membership site that my client had before they hired me to put their site on WP.

    The login doesn’t work anymore. Is it a WP conflict or something wrong with the code?

    Code in head:

    <script language="JavaScript">
    
      function forgotPassword() {
        newWindow = window.open("https://web.theirsite.com/mc/common/forgotpassword.do?hidOrgID=ap",
        "ForgotPassword",
        "height=150,width=300,menubar=0,location=0,personalbar=0,toolbar=0,titlebar=0,status=0");
        }
    
      function formSubmit() {
        document.frmLogin.txtUserId.value = document.frmUserName.txtUserId.value;
        document.frmLogin.submit();
        }
    
      function submit1() {
        document.frmLogin.txtPassword.focus();
        return false;
        }
    
      function submit2() {
        document.frmLogin.txtUserId.value = document.frmUserName.txtUserId.value;
        myUrlEncode(document.frmUserName.txtUserId.value,document.frmLogin.txtUserId);
        myUrlEncode(document.frmLogin.txtPassword.value,document.frmLogin.txtPassword);
        return true;
        }
    
    </script>

    Code in body:
    <form> <strong>Username:</strong><p> </p> <input name="txtUserId" type="text" /> </form> <form action="https://web.theirsite.com/mc/login.do" method="post"> <strong>Password:</strong><p> </p> <input name="txtPassword" type="password" /> <input name="hidOrgID" type="hidden" value="ap" /> <input name="txtUserId" type="hidden" /> <input name="isencodedstring" type="hidden" value="no" /> <input name="mcevent" type="hidden" value="mcsubmit" /> <a href="JavaScript: formSubmit();"> <img src="https://web.theirsite.com/mcdatafiles/images/styles/11/login.gif" border="0" alt="Login" /> </a> <a href="JavaScript: forgotPassword();"> <img src="https://web.theirsite.com/mcdatafiles/images/styles/11/forgotpass.gif" border="0" alt="Forgot Password" /> </a> </form>

  • The topic ‘including javascript’ is closed to new replies.