Well Jon, the code is very simple... it's generated by DW's form check... and, as i said, it happens with unfailing regularity the minute it's put in to a template generated child. This is what the code on the page looks like: <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Title Here</title> <meta name="Keywords" content="some keywords here" /> <meta name="Description" content="Description here" /> <script type="text/javascript"> function MM_validateForm() { //v4.0 if (document.getElementById){ var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; } else if (test!='R') { num = parseFloat(val); if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); min=test.substring(8,p); max=test.substring(p+1); if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n'; } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; } } if (errors) alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors == ''); } } </script> <!-- InstanceEndEditable --> </head> And, whammo: "There is a syntax error on line xx. Code hinting may not work until you fix this error." And, the error always highlights the closing </script> line. The script itself is fine: 1. If one puts it into an external js file, there's no problem 2. If one puts it in the body section, there's no problem 3. If one puts it in the template, there's no problem Also, if one removes the closing </script> tag, the error goes away The problem only happens in a child generated by a template and in the location I've illustrated. Apparently, this is a problem a lot of users are facing...
... View more