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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:33:06+00:00 2026-06-17T17:33:06+00:00

I am in the process of creating a Google Maps Mashup. Everything seems to

  • 0

I am in the process of creating a Google Maps Mashup.
Everything seems to work fine until I attempt to pass JQuery tabs to my infowindow.
Basically, what I am doing is:

  1. Create Map
  2. Onclick Event from checkbox
  3. Create Marker
  4. Create Infowindow
  5. Call custom function to generate the HTML for the infowindow (in this custom function, I give the HTML element a unique name)
  6. I then try to call the JQuery function to initiate the tabs

This is where the issue arises. I get the javascript error “cannot read property _e3 of undefined”. I did try to call the custom function after creating the infowindow, but this is not helping (although this is where the JS issue arises)

My code is below:

var map;
        var mouseInfowindow;
        var infowindow;
        var bounds;
        var infoWindow = new google.maps.InfoWindow;
        var markers = [];

        function initialize() {
            var myOptions = {
                center: new google.maps.LatLng(-33.924868, 18.424055),
                mapTypeId: google.maps.MapTypeId.ROADMAP,
                streetViewControl: true,
                zoomControl: true,
                panControl: true,
                mapTypeControl: true,
                zoom: 12,
                zoomControlOptions: { 'style': google.maps.ZoomControlStyle.LARGE, 'position': google.maps.ControlPosition.RIGHT_BOTTOM },
                panControlOptions: { 'style': google.maps.ZoomControlStyle.LARGE, 'position': google.maps.ControlPosition.RIGHT_BOTTOM },
                mapTypeControlOptions: { 'style': google.maps.MapTypeControlStyle.DROPDOWN_MENU, 'position': google.maps.ControlPosition.RIGHT_BOTTOM }
            };

            map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

            devcs = [];

            for (var i = 0; i < unitsArr.length; i++) {
                var unit = unitsArr[i];
                var marker = createMarker(unit[0], unit[1], unit[2], unit[3], unit[4], unit[5]);

                devcs[i] = marker;
                mymarker = marker;

                myLat = unit[2];
                myLng = unit[3];
            }

            //ShowClock();
        }

        function createMarker(a, b, c, d, e, f, g, h , i, j) 
        {

            // Hide the Marker and InfoWindow if the checkbox was unchecked
            if (j.checked == false)
            {
               hideMarker(a);
            } 
            else
            {
                // If the marker was created previously, simply show it (i.e. do not recreate it)
                if (show(a) == '0')
                {
                    // Create new marker that has not already been added to the page
                    var location = new google.maps.LatLng(c, d);
                    var marker = new google.maps.Marker({
                        position: location,
                        icon: e,
                        animation: google.maps.Animation.DROP,
                        map: map,
                        id: a
                        });

                    marker.setTitle(b);
                    map.panTo(location);
                    markers.push(marker);

                    google.maps.event.addListener(marker, 'click', function() {
                        if(infowindow) {
                            infowindow.close();
                        }   

                        var contentString = buildInfoWindowContent(a, b, c, d, e, f);
                        infoWindow.setContent(htmlEscape(contentString));
                        infoWindow.open(map,marker);

                        google.maps.event.addListener(infowindow, 'domready', function () {
                            $("#tab-panel-1234").tabs();
                        });

                    });
                }
             }
        }


        function buildInfoWindowContent(a, b, c, d, e, f)
        {

            var returnString = '<div class="infobox-wrapper">' + 
                               '     <div class="container_12" id="infobox" style="height:240px;overflow-y:auto;">' + 
                               '         <div class="grid_12">' + 
                               '             <div class="block-border" id="tab-panel-1234" style="width:610px;">' + 
                               '                 <div class="block-header">' + 
                               '                     <h1 id="MainTabTitle">' + b + '</h1>' + 
                               '                     <ul class="tabs">' + 
                               '                         <li><a href="#tab-1" id="TabOneHeader">Current</a></li>' + 
                               '                         <li><a href="#tab-2" id="TabTwoHeader">Trails</a></li>' + 
                               '                         <li><a href="#tab-3" id="TabThreeHeader">Download</a></li>' +
                               '                     </ul>' +
                               '                 </div>' +
                               '                 <div class="block-content tab-container" style="padding-top:10px; padding-bottom:10px;">' + 
                               '                     <div id="tab-1" class="tab-content">' + 
                                                        f + 
                               '                     </div>' + 
                               '                     <div id="tab-2" class="tab-content">' + 
                               '                        <table style="width:100%;" cellpadding="4" cellspacing="0">' + 
                               '                          <tr>' + 
                               '                              <td></td>' + 
                               '                              <td></td>' + 
                               '                          </tr>' + 
                               '                          <tr>' + 
                               '                              <td></td>' + 
                               '                              <td></td>' + 
                               '                          </tr>' + 
                               '                        </table>' + 
                               '                     </div>' + 
                               '                     <div id="tab-3" class="tab-content">' + 
                               '                         <p>' + 
                               '                         </p>' + 
                               '                     </div>' + 
                               '                 </div>' + 
                               '             </div>' + 
                               '         </div>' + 
                               '     </div>' + 
                               ' </div> ' ;

                return returnString;

        }

Any help would be greatly appreciated!!

  • 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-17T17:33:07+00:00Added an answer on June 17, 2026 at 5:33 pm

    There is a typo, the marked w has to be uppercase:

    google.maps.event.addListener(infowindow, 'domready',....
    //--------------------------------^
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of creating an interactive campus map using the Google Maps
I am stucked with the process of creating a push notification using Google's cloud
I've got a third party (mootools) library creating tabs and I've got google double
I am in process of creating a software for dumping plain text of whatever
Suppose that a process is creating a mutex in shared memory and locking it
I am in the process of creating an iPhone app that requires to interact
I'm in the process of creating a coverflow view for android, but I'm running
I am in the process of creating an app, and one of the pieces
I am in the process of creating a site that i would like to
I'm in the process of creating a metasearch engine and I'm stuck! Using php

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.