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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:11:35+00:00 2026-05-31T14:11:35+00:00

I want to integrate Tweet button into a Google Maps v3 infoWindow (infoBox), with

  • 0

I want to integrate Tweet button into a Google Maps v3 infoWindow (infoBox), with I have no success. Of course the script I use works on a simple page. I set up the twitter’s js in my template file, added anchor to the html variable in the gmaps javascript file:
…
Tweet
…

What now can be see is only the “Tweet” text if I hover over the anchor link, and no Tweet grapic button is visible. If I click on this button, Twitter site loads but shares nothing.

With Facebook Like button I had to implement a line of code, whet the “domready” event runs.

How to do it Twitter?

  • 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-31T14:11:36+00:00Added an answer on May 31, 2026 at 2:11 pm

    I’m having the same problem but am getting closer to solving it.

    I’m guessing you’re using the standard Twitter examples where you add an <a> tag like:

    <a href="https://twitter.com/share" class="twitter-share-button" 
    data-lang="en">Tweet</a>
    

    And then need to get their JavaScript to load:

    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
    if(!d.getElementById(id)){js=d.createElement(s);js.id=id;
    js.src="//platform.twitter.com/widgets.js";
    fjs.parentNode.insertBefore(js,fjs);
    }}(document,"script","twitter-wjs");</script>
    

    So the problem is likely that the infoWindow isn’t getting attached to the DOM.

    The Google Maps V3 API InfoWindow Class has an Event “domready”.

    So if you’re using jQuery like I am then you need to do something like:

    google.maps.event.addListener(bubble, 'domready', function(event) {
            !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
            if(!d.getElementById(id)){js=d.createElement(s);js.id=id;
            js.src="//platform.twitter.com/widgets.js";
            fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
    });
    

    Bearing in mind that I haven’t got this to work yet 🙂

    Let’s sort this sucker out!

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

Sidebar

Related Questions

i want to integrate facebook like button into my website . My website has
I want to integrate MarkerCluster with my database driven Google map and have been
I want to integrate the Aviary SDK Objective-C library into Monotouch project. I use
I want to integrate the zxing barcode scanner into my app. I have followed
I want to integrate Google Custom Search into my website searching box. The problem
I want to integrate tweet button inside a jquery template. Am trying the 'tweet
I want to integrate facebook login into my web application developed using Spring MVC.
I want to integrate photologue with my Django app and use it to display
i want to integrate maps using map kit in iphone, and i am successful
I want to integrate full-text search into a .NET application with [Fluent] NHibernate-based data

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.