Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #1364615

    ipoint
    Participant

    Hello,
    My client has provided me with a javascript form to install. The code they provided is below. My question is; Does the form section need to be installed separately from the javascript? And where does each element(form and script) go within the file structure to work on the client login page? I do have a child theme set up. Thanks so much for your help.

    <form method=”post” action=”https://secure.netlinksolution.com/nextgen/login”>
    < input type=”hidden” name=”firmID” value=”REPLACE”>
    < input type=”hidden” name=”redirect” value=”true”>
    < label for=”trLogin”>Login:</label><br>
    < input type=”text” id=”trLogin” name=”loginUsername” autocapitalize=”off” spellcheck=”false” required maxlength=”50″><br>
    < label for=”trPassword”>Password:</label><br>
    < input type=”password” id=”trPassword” name=”loginPassword” autocomplete=”off” required maxlength=”50″><br>
    < input type=”submit” value=”Log In”><br>
    < a id=”trReset” href=”#”>Forgot password?
    < /form>

    < script src=”//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js”></script>
    < script>
    window.jQuery || document.write(‘<script src=”https://secure.netlinksolution.com/repository/jquery/1.7.2/jquery.min.js”>\x3C/script>’)
    jQuery.noConflict(true)(function(a){ var localResource = “REPLACE.png”;
    var p=(document.compatMode==’CSS1Compat’?’fixed’:’absolute’),c=location.protocol+’//’+location.host+’/’+localResource;a(“a#trReset”).click(function(){var b=a(‘<iframe id=”trResetPwdFrame” style=”background-color:transparent;display:none;position:’+p+’;top:0;left:0;border:0;height:100%;width:100%;overflow:hidden” allowtransparency=”true”></iframe>’).appendTo(“body”).load(function(){try{b[0].contentWindow.name===”close”&&setTimeout(function(){b.remove()},0)}catch(d){}}).show().attr(“src”,”https://secure.netlinksolution.com/nextgen/packaged/pwd-reset/1.1.0/index.html#”+c);return false})
    });
    < /script>

    #1364707

    Joao
    Moderator

    Hi There,

    You can place the code in a RAW Code Element in Cornerstone.

    It might not be visible in Cornerstone, but save it and check the live site.

    Hope it helps

    Joao

    #1364957

    ipoint
    Participant

    Hello,
    Thank you for your reply. I have installed the form and the javascript together into a raw content area in cornerstone. When I save, I get a repeated error message:

    “If not part of an HTML tag, consider using HTML entities for angle brackets by converting < to < and > to >”

    I did go through an try to find erroneous angle brackets but I didn’t see anything out of the ordinary. I have pasted the exact code I have installed in the raw content section below. Here is a link to the page that it’s occurring on.
    http://key2accountin.onpressidium.com/client-login/

    Let me know if you need more info for assistance.
    Thanks again,
    Tony

    <form method=”post” action=”https://secure.netlinksolution.com/nextgen/login”>
    < input type=”hidden” name=”firmID” value=”389393″>
    < input type=”hidden” name=”redirect” value=”true”>
    < label for=”trLogin”>Login:</label><br>
    < input type=”text” id=”trLogin” name=”loginUsername” autocapitalize=”off” spellcheck=”false” required maxlength=”50″><br>
    < label for=”trPassword”>Password:</label><br>
    < input type=”password” id=”trPassword” name=”loginPassword” autocomplete=”off” required maxlength=”50″><br>
    < input type=”submit” value=”Log In”><br>
    < a id=”trReset” href=”#”>Forgot password?
    < /form>
    < script src=”//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js”></script>
    < script>
    window.jQuery || document.write(‘<script src=”https://secure.netlinksolution.com/repository/jquery/1.7.2/jquery.min.js”>\x3C/script>’)
    jQuery.noConflict(true)(function(a){ var localResource = “/wp-content/uploads/2017/02/1px.png”;
    var p=(document.compatMode==’CSS1Compat’?’fixed’:’absolute’),c=location.protocol+’//’+location.host+’/’+localResource;a(“a#trReset”).click(function(){var b=a(‘<iframe id=”trResetPwdFrame” style=”background-color:transparent;display:none;position:’+p+’;top:0;left:0;border:0;height:100%;width:100%;overflow:hidden” allowtransparency=”true”></iframe>’).appendTo(“body”).load(function(){try{b[0].contentWindow.name===”close”&&setTimeout(function(){b.remove()},0)}catch(d){}}).show().attr(“src”,”https://secure.netlinksolution.com/nextgen/packaged/pwd-reset/1.1.0/index.html#”+c);return false})
    });
    < /script>

    #1365470

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! I believe that there is something wrong with the given code. And by default, jQuery is loaded by WordPress. It might not be necessary. Perhaps you can make use of this code instead:

    <form method="post" action="https://secure.netlinksolution.com/nextgen/login">
    	<input type="hidden" name="firmID" value="389393">
    	<input type="hidden" name="redirect" value="true">
    	<label for="trLogin">Login:</label><br>
    	<input type="text" id="trLogin" name="loginUsername" autocapitalize="off" spellcheck="false" required maxlength="50"><br>
    	<label for="trPassword">Password:</label><br>
    	<input type="password" id="trPassword" name="loginPassword" autocomplete="off" required maxlength="50"><br>
    	<input type="submit" value="Log In"><br>
    	<a id="trReset" href="#">Forgot password?</a>
    </form>
    
    <script>
    jQuery.noConflict(true)(function(a){ var localResource = "/wp-content/uploads/2017/02/1px.png";
    var p=(document.compatMode=='CSS1Compat'?'fixed':'absolute'),c=location.protocol+'//'+location.host+'/'+localResource;a("a#trReset").click(function(){var b=a('<iframe id="trResetPwdFrame" style="background-color:transparent;display:none;position:'+p+';top:0;left:0;border:0;height:100%;width:100%;overflow:hidden" allowtransparency="true"></iframe>').appendTo("body").load(function(){try{b[0].contentWindow.name==="close"&&setTimeout(function(){b.remove()},0)}catch(d){}}).show().attr("src","https://secure.netlinksolution.com/nextgen/packaged/pwd-reset/1.1.0/index.html#"+c);return false})
    });
    </script>

    And if still doesn’t work, it may seem that you might be having an issue with a third party script. Regretfully, we cannot provide support for third party scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    Thank you for your understanding.

    #1366067

    ipoint
    Participant

    I believe it is working correctly now & I am very thankful for your help.

    #1366164

    Joao
    Moderator

    That is great,

    Have a great weekend.