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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:03:44+00:00 2026-06-10T19:03:44+00:00

I have encountered an issue that I cannot seem to work out in regards

  • 0

I have encountered an issue that I cannot seem to work out in regards to loading page content which contains a google map. Below is the index.php page containing the parent header and the google api information.

<html>
<head>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.7.2.min.js"></script>

    <!-- Google Maps -->
    <script src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript">
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(-34.397, 150.644),
          zoom: 8,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("location-wedding"),
            mapOptions);
      }
    </script>
    <!-- Switch Layout -->
    <script type="text/javascript">
        $(document).ready(function() {
            $('.Theme_Page').load("test.php");
        });
    </script>


</head> 


<body onload="initialize()">

    <!-- Page Change -->
    <div class="theme_holder">

    </div>

    <div class="Theme_Page">
        <!-- Content To Go Here -->
    </div>

</body>

The page being loaded in is the following:

<div id="location-wedding" style="width:700px; height:250px"></div>

The problem is if the above div is within the index.php then the map is present, as soon as it place it in the to be loaded page it does not show at all. The reason as to why I am wanting it to be in the .load() page is because I’m going to use Jquery to change the contents on this page (with an onclick event)

Any help or guidance would be most appreciated.

Cheers Lee.

  • 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-10T19:03:47+00:00Added an answer on June 10, 2026 at 7:03 pm

    As yoda said your initialize function kicks in before load.php is loaded. so there will be no div where javascript can put map in instead of calling initialize function from body onload you should call this function in load.php ….. try this:: remove onload function from body and place following javascript code on load.php

    <script type="text/javascript">
        $(document).ready(function() {
            initialize()
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently encountered an issue that is related to code running in the
I have encountered an issue with Firefox that if border-box is applied to an
I'm having an issue that I have not encountered before where App.configs for Windows
I've recently encountered an issue that I seem unable to solve. I am creating
I am having a strange issue that I have never encountered in the past
I am implementing instrumentation within an application and have encountered an issue where the
I'm getting started with Qt and have encountered the following issue: when i compile
I have encountered a problem in one of my Java projects, which causes bugs.
I have encountered a most annoying problem that occurs on the PWD variable when
I have encountered a problem twice now whereby a producer thread produces N work

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.