Title: including javascript
Last modified: August 19, 2016

---

# including javascript

 *  [lleighh2](https://wordpress.org/support/users/lleighh2/)
 * (@lleighh2)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/including-javascript/)
 * I’m trying to get a 3rd party login script to work [here](http://piedmontastd.org/member-log-in).
 * 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("http://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="http://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="http://web.theirsite.com/mcdatafiles/images/styles/11/login.gif" 
   border="0" alt="Login" /> </a> <a href="JavaScript: forgotPassword();"> <img 
   src="http://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.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [lleighh2](https://wordpress.org/support/users/lleighh2/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/including-javascript/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
