Консоль Google:
Uncaught TypeError: Невозможно прочитать свойство documentElement со значением NULL trailhead.php: 84
trailhead.php:
request.onreadystatechange = function()
{
if (request.readyState == 4)
{
var xmlDoc = request.responseXML;
...
// obtain the array of markers and loop through it
markers = xmlDoc.documentElement.getElementsByTagName("marker");
xmlDoc имеет значение null, что означает, что запрос либо не получает ничего, либо не получает допустимый XML. И оказывается это последнее:
trailhead_ajax.php
This page contains the following errors:
error on line 21 at column 2381: attributes construct error
Below is a rendering of the page up to the first error.
В любом случае ошибка построения атрибута вызвана тем, что вы (отформатированы здесь для разборчивости):
<marker trailhead_name="Parrish Creek Trail"
trailhead_description="From Interstate 15 take Centerville exit 319.
Go east on Parrish Lane. At 700 East turn left
at the "T." Follow the narrow road to the
trailhead." />
Вы должны выйти из "T."
как "T."
.
Честно говоря, эти сообщения об ошибках нетрудно понять. Во всяком случае, они невероятно полезны.