This page contains errors Android

jasondhsd
13 years, 1 month ago
I can't figured this one out. This is on my android phone
On my contact page www.jrdtech.net/CONTACT-US/Jason-Disbrow
I get this error
This page contains the following errors:
error on line 22 at column 4566: Comment not terminated <!-- function validateForm(frm) {var valid=document.for

This happens on default browser and dolphin hd browser with user agent set to android.  If I switch the user agent to iphone in Dolphin the page renders.

I launched firefox with user agent set to simulate the droidx phone and it displays fine. I checked the source and I see no signs of a comment not be terminated properly, heck there isn't even any comments at all.  What am I missing??

I'm also receiving an error on the blog page www.jrdtech.net/BLOG
error on line 20 at column 170: EntityRef: expecting ';'  
Again I load firefox using droidx user agent string, the page renders correcly
view source and go to location specified in the error  and its in the middle of a url, why is it expecting a ';'?  

Any ideas? THanks
dryabov
13 years, 1 month ago
Set "Content-Type" to text/html on XHTML tab of MJ Settings page.
dryabov
13 years, 1 month ago
The problem code is
<script type="text/javascript"><!--
function validateForm(frm){var valid=document.formvalidator.isValid(frm);if(valid==false){if(frm.email.invalid){alert("Please enter a valid e-mail address:");}else if(frm.text.invalid){alert("Please make sure the form is complete and valid.");}
return false;}else{frm.submit();}}</script>


Here you open comment block by "<!--" and never close it with corresponding "-->". So, either remove "<!--" or add "//-->" before "</script>".

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.