We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8136
    • 9 Posts
    just another where is everything question. I validate my site threw w3c and it says it is not valid it seems someone left out the "<!--" and "-->" in the javascript for the sidebar login I can view the source and see where the problem is but where can I find this script so I can solve this? Is it in the mysql db if so where is their a guide that shows where all the scripts are coming from? the script is
    <h2>Login:</h2>
    <div id="sidebarlogin"> <script type="text/JavaScript">

    function getElementById(id){
    var o, d=document;
    if (d.layers) {o=d.layers[id];if(o) o.style=o};
    if (!o && d.getElementById) o=d.getElementById(id);
    if (!o && d.all) o = d.all[id];
    return o;
    }

    function webLoginShowForm(i){
    var a = getElementById(’WebLoginLayer0’);
    var b = getElementById(’WebLoginLayer2’);
    if(i==1 && a && b) {
    a.style.display="block";
    b.style.display="none";
    document.forms[’loginreminder’].txtpwdrem.value = 0;
    }
    else if(i==2 && a && b) {
    a.style.display="none";
    b.style.display="block";
    document.forms[’loginreminder’].txtpwdrem.value = 1;
    }
    };
    function webLoginCheckRemember () {
    if(document.loginfrm.rememberme.value==1) {
    document.loginfrm.rememberme.value=0;
    } else {
    document.loginfrm.rememberme.value=1;
    }
    }
    function webLoginEnter(nextfield,event) {
    if(event && event.keyCode == 13) {
    if(nextfield.name==’cmdweblogin’) {
    document.loginfrm.submit();
    return false;
    }
    else {
    nextfield.focus();
    return false;
    }
    } else {
    return true;
    }
    }
    </script>

    XML Parsing Error: xmlParseEntityRef: no name. Any help would be greatly appreciated.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      assets/snippets/weblogin/weblogin.inc.php
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 8136
        • 9 Posts
        Thanks again You are appreciated big high five.
          • 8136
          • 9 Posts
          BEAUTIFUL just added the <!-- andd the --> and I get a green I am validated big high fives for all.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org