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

  • SEARCH
  • Home
  • 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 6842177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:04:03+00:00 2026-05-27T00:04:03+00:00

I wonder whether someone can help me please. I’ve put together this page, which

  • 0

I wonder whether someone can help me please.

I’ve put together this page, which will give the user functionality to load markers with the selection or deselection of checkboxes. They will then be able to click on these markers which in turn shows the nearest POI within a given radius.

The problem I’m having is with loading the xml at lines 143-145 which are:

downloadUrl("loadmylocations.php", function(data) {  
var xml = data.responseXML; 
var markers = xml.documentElement.getElementsByTagName("marker")

Firefox tells me that the error is that the ‘xml is undefined’. I think I know why and that’s because I’m using this code to pull data for the POI’s.

    var radius = document.getElementById('radiusSelect').value;
    var searchUrl = 'searchsites.php?siteosgb36lat=' + center.lat() + '&siteosgb36lon=' + center.lng() + '&radius=' + radius;
    downloadUrl(searchUrl, function(data) {
        var xml = parseXml(data);

So they clash, because I define the XML at the end of the script differently, these being

loadmylocations.php

    request.open('GET', url, true); 
    request.send(null); 
    } 

    function doNothing() {} 

searchsites.php

            request.open('GET', url, true);
            request.send(null);
            }

            function parseXml(str) {
            if (window.ActiveXObject) {
            var doc = new ActiveXObject('Microsoft.XMLDOM');
            doc.loadXML(str);
            return doc;
            } else if (window.DOMParser) {
            return (new DOMParser).parseFromString(str, 'text/xml');
            }
            }

            function doNothing() {}

Could someone perhaps tell me please how I can change so that I can pull the two sets of data wihtin the same script without them clashing.

Many thanks and kind regards

  • 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-27T00:04:04+00:00Added an answer on May 27, 2026 at 12:04 am

    I did some work around this, and through trial and error I discovered that I could load the information for the ‘loadmylocations’ script as the ‘searchsites’ script i.e. var xml = parseXml(data); rather than var xml = data.responseXML;.

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

Sidebar

Related Questions

I wonder whether someone can help me please. I've created this form which allows
I wonder whether someone can help me please. I'm trying to put together a
I wonder whether someone can help me please. I'm trying to put together a
I wonder whether someone can help please. I'm trying to put together a script
I wonder whether someone can help me please. I'm trying to put together a
I wonder whether someone may be able to help me please. I've put together
I wonder whether someone may be able to help me please. I've put together
I wonder whether someone could help me please. I'm trying to put together an
I wonder whether someone can help me please. I'm trying to implement the mysql_insert_id()
I wonder whether someone may be able to help me please. I've put some

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.