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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:40:04+00:00 2026-06-07T15:40:04+00:00

Edit: The site is working properly again. I deleted the line of code flagged

  • 0

Edit: The site is working properly again. I deleted the line of code flagged by commentors below (referencing a nonexistent div), experimented with version syntax, and also with the order of parameters in my contentBox function). Also deleted the syntax and added a line of code to call the function from the DOM. Thanks to all who commented. Some combination of the above worked. Cheers, Cheryl)

Note: I asked this question in the main forum yesterday — didn’t realize that the google maps user group had its own tag in Stack Overflow. Here’s the Q:

I have an application that uses Google maps API v. 3 and accesses content from a database to display in google’s infowindows and a sidebar. See the code for the main file here: http://www.corkmemorymap.org.

My problem is that, periodically, the function that brings up content in the sidebar when a user clicks on a marker stops working. You can still access sidebar content via the topic search at the top of the page (that is done with jquery, and not tied to google or the markers) but I can’t get sidebar content through the markers.

The last time this happened, it was a version issue. I added a version to the script code that calls the API, and all was well.

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

This time I thought it was the same thing, as I saw Google had deprecated that version. So I updated to the new version and… nada. So now I am stumped. I tried messing around with different versions, or no version, and had it briefly working again. Then not. Does anyone else have experience with this? Are the versions unstable? Any suggestions?

If it helps, this is the function that calls the change in sidebar content:

function contentBox(marker, map, sidebar, winHtml, infoWindow) {
    google.maps.event.addListener(marker, 'click', function() {
        document.getElementById('sidebar').innerHTML=winHtml;
        infoWindow.close(map, marker);
    });
}

Oh, one other thing — I’m not using an API key as this is a non-profit website. Do I need an API key (it’s been working without one since December 2011)? Is there anything tricky about them?

Regards, Cheryl

  • 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-06-07T15:40:06+00:00Added an answer on June 7, 2026 at 3:40 pm

    This question was answered in comments above. There were two issues: I needed to update the version of the Google Maps API I was referencing in the header, and I had a line of code pointing to a nonexistent div. I updated the former and deleted the latter. Thanks to those who responded.

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

Sidebar

Related Questions

I am working on a Magento site, and i would like to edit the
For some reason the php mail() function is not working properly on a site
As part of the checkout process of a site im working i can edit
To allow users and site admins to view/add/edit/delete data in my application I decided
I'm solving UVA's Edit Step Ladders on an uva sub-site named programming-challenges.com, but since
What if a user hits my site with http://www.mysite.com/Quote/Edit rather than http://www.mysite.com/Quote/Edit/1000 In other
EDIT: See my answer below--> I am wanting to have a view that when
I'm working on asp.net mvc web site Localization and I've faced problems with enums
I have some Ajax that has been working on a live site, now it
for some reason my server that uses socket.io is not working properly. The program

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.