Welcome, Guest
Username Password: Remember me

This page contains errors Android
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: This page contains errors Android

This page contains errors Android 13 years ago #6133

  • jasondhsd
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
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

Re: This page contains errors Android 13 years ago #6134

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Set "Content-Type" to text/html on XHTML tab of MJ Settings page.
The following user(s) said Thank You: jasondhsd, Veki

Re: This page contains errors Android 13 years ago #6135

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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>".
  • Page:
  • 1
Time to create page: 0.10 seconds

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.