Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5991125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:20:32+00:00 2026-05-22T23:20:32+00:00

There are a number of JavaScript error messages that I see on this page

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:20:33+00:00Added an answer on May 22, 2026 at 11:20 pm

    Google Console:

    Uncaught TypeError: Cannot read property ‘documentElement’ of 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 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:

    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.
    

    In any case, the attribute construction error is because you had (formatted here for legibility):

    <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." />
    

    You have to escape the "T." as &quot;T.&quot;.

    Honestly, these error messages aren’t difficult to understand. If anything, they’re incredibly helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are a number of great Javascript libraries\frameworks out there (jQuery, Prototype, MooTools, etc.),
Is there any way to get the source line number in Javascript, like __LINE__
Is there a maximum number of characters that can be written to a file
for VS 2005 is there a max number of projects that will cause performance
Is there a canonical solution for limiting the number of characters that someone can
I seem to have hit an error message that I'm having a hard time
Possible Duplicates: Is there a bignum library for JavaScript? Strange syntax of Number methods
There are several different methods for converting floating point numbers to Integers in JavaScript.
There are a number of email regexp questions popping up here, and I'm honestly
There are a number of run-time differences in compatible code between these two versions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.