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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:12:26+00:00 2026-05-12T12:12:26+00:00

The Scenario Using jQuery, I have a page that has a popup overlay containing

  • 0

The Scenario

Using jQuery, I have a page that has a popup overlay containing locations marked using Google Maps.

The overlay works using 2 pages setup as follows:

  • The main page opens an overlay via a text link to a map. The complete map page is then loaded into the overlay.
  • The map page itself contains Google’s API and initialization code to load the correct map.

As they are, the overlay and map work fine providing I load the whole map page.

The Problem

My problem is, I don’t want to load the complete page, I want to load just the particular div holding the map.

I’m using jQuerys Ajax “load” function, (as follows) to load the complete map page.

wrap.load(this.attr("href")) 

If I try to change this to load a particular DIV (as follows), the pages DIV content is loaded correctly, except the Google API is not loaded, meaning the map does not display.

wrap.load(this.attr("href")+" #map_wrap") 

I have tried including Googles API and initialization code on the first main page that opens the overlay, however, this still doesn’t work.

I’ve also tried embedding the code within the loaded DIV, again, no luck.

The Question

Is there a way to load the map pages API script along with the DIV?

  • 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-12T12:12:26+00:00Added an answer on May 12, 2026 at 12:12 pm

    After rearranging the page coding, I solved the problem.

    I included the Google Maps API code into the main page that opens the overlay, then when the overlay is opened, I needed to call the Google Map initialize() function.

    Problem solved.

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

Sidebar

Related Questions

Scenario: I have a Javascript-generated web page that someone else wrote a long time
A common scenario when using source control is to have a development branch along
Scenario: I have a document I created using LaTeX (my resume in this case),
I am using SVNKit in my application. I have a scenario wherein certain files
Ok, i have simple scenario: have two pages: login and welcome pages. im using
I have a web page that contains two lists (Unorders lists), I have to
Using an ORM approach in applications can often lead to the scenario where you
Imagine a scenario where, using xml, the user is able to specify ranges in
I am using Spring and JDBCTemplate. The scenario is a CUSTOMER table and ORDERS
Here's the scenario. I'm debugging my own app (C/C++) which is using some library

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.