There are a number of JavaScript error messages that I see on this page when I look with Chroms’s JavaScript tool. I am having trouble understanding why they happen. Here is the page:
http://www.comehike.com/outdoors/parks/trailhead.php
Any idea what is the problem with it?
Google Console:
trailhead.php:
xmlDoc is null, which means the request is either not receiving anything or not receiving valid XML. And it turns out to be the latter:
trailhead_ajax.php:
In any case, the attribute construction error is because you had (formatted here for legibility):
You have to escape the
"T."as"T.".Honestly, these error messages aren’t difficult to understand. If anything, they’re incredibly helpful.