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 7444417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:30:29+00:00 2026-05-29T11:30:29+00:00

I fixed the problem below by updating the Google maps API version in this

  • 0

I fixed the problem below by updating the Google maps API version in this line of code:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.9
&sensor=false"> </script>

But now I have the same problem again! I updated the version again (to the 3.9 you see above), but the content is once again not displaying in the sidebar div (see below). I haven’t done a thing to this code, which has been online since December 2011. Any ideas about why it would suddenly stop working?


I’ve got an application that uses Google maps v3 with php and mysql to display markers on a map. The markers connect to info window content on mouseover (drawn from the database) and then display new content (also drawn from the database) in a side div on click. See it at: http://www.corkmemorymap.org

All of this was working fine and then suddenly it wasn’t. The sidebar no longer displays on click. Nothing happens at all. If you use the topic search above the map, you can see what is supposed to happen (click on one of the stories that drop down over the map when you choose a topic).

The code for this page is based on the Google maps doc here:
http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
I’m using the php echo function for the XML file (this is because the hosting organization has an old version of php).

I added this function to get the sidebar content to come up on click:

function contentBox(marker, map, sidebar, winHtml, infoWindow) {
    google.maps.event.addListener(marker, 'click', function() {
    document.getElementById('sidebar').innerHTML=winHtml;
    /*closes the info window when users clicks the marker 
    and launches the content*/
    infoWindow.close(map, marker);

    });
}

It is within the larger ajax function, and is also called within that function.

oh, and this is the winHtml variable:

var winHtml =
      '<!DOCTYPE html>' +
      '<head>' +
      '<link rel="stylesheet" href="mapstyle4.css">' +
      '</head>' +
      '<body>' +
      '<div id="sidebar">' + '<h2>' + ph_title + '</h2>' 
        + '</header>' +
      '<div id="photos">' +
      '<img width="220" src="'+ph_web+'"/>' +
      '</div>' +
      '<div id="trans">' + trans_xcrpt +
      '</div>' +
      '<div id="audio">' +
      '<audio autoplay="autoplay" controls="controls">' +
      '<source src="'+audio_ogg+'" type="audio/ogg">' +
      '<source src="'+audio_mp3+'" type="audio/mpeg">' +
      '</audio>' +
      '</div>' +
      '</body>' +
      '</html>';

I’ve tested this locally as well (on my MAMP), and it doesn’t work there either, which suggests it is something that has changed at Google. But what? How do I find out what has changed so I can adjust my code? Has this happened to anyone else? With no error messages and a code that has worked fine for 6 months then suddenly doesn’t I am at a bit of a loss for troubleshooting.

  • 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-29T11:30:32+00:00Added an answer on May 29, 2026 at 11:30 am

    There is an error in your DOM reference on line 128 of your page, which yields the following JS error:

    TypeError: 'null' is not an object (evaluating 'document.getElementById('infoWindow').parentNode')
    

    There is also a line break in your code in line 128.

    I suggest removing the reference to parentnode, so that your code looks like this:

    document.getElementById('infoWindow').style.overflow = 'visible';
    

    I was able to get the sidebar to come up on marker click once I set the JS as described.

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

Sidebar

Related Questions

Edit : The bug that caused this problem has been fixed. The @version tag
<script type=text/javascript> $(document).ready(function($){ $.supersized({ //Background image slides : [ { image : 'images/pendulumWeb.jpg' }
This problem is easy fixed clientside. But for performance I want to do it
UPDATE It looks like this problem has been quietly fixed in iOS 4.3. Up
I have a problem with IE. I have a fixed div like this: #fixed
[SOLVED]: Applying proper list iteration procedure fixed problem. (Shown below) I currently have a
Problem fixed. Thanks a lot! I am having the following error in the code
i've a problem with png transparency in IE6.. below is the code which needs
I have a problem with updating the value of property from code which is
Original question is below. I fixed my problem. I had the same view controller

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.