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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:11:50+00:00 2026-06-13T23:11:50+00:00

Am using the following code to show map in a popup window. But map

  • 0

Am using the following code to show map in a popup window. But map does not show in the popup. It is working properly if i use http://www.w3schools.com instead of http://maps.google.co.uk/?q=USA.. Anybody please help.

<?php
    echo "<div id='login-box' class='login-popup'>
            <a href='#' class='close'><img src='binc/close_pop.png' class='btn_close' title='Close Window' alt='Close' /></a><br>

    <iframe src='http://maps.google.co.uk/?q=USA'></iframe></div>";

    <a class='login-window' style='color: #0000FF;font: 14px Helvetica;' href='#login-box'>USA</a>

    ?>

incuding the script jquery-1.6.4.js

<script>
$(document).ready(function() {
    $('a.login-window').click(function() {

                //Getting the variable's value from a link 
        var loginBox = $(this).attr('href');

        //Fade in the Popup
        $(loginBox).fadeIn(300);

        //Set the center alignment padding + border see css style
        var popMargTop = ($(loginBox).height() + 24) / 2; 
        var popMargLeft = ($(loginBox).width() + 24) / 2; 

        $(loginBox).css({ 
            'margin-top' : -popMargTop,
            'margin-left' : -popMargLeft
        });

        // Add the mask to body
        $('body').append('<div id="mask"></div>');
        $('#mask').fadeIn(300);

        return false;
    });

    // When clicking on the button close or the mask layer the popup closed
    $('a.close, #mask').live('click', function() { 
      $('#mask , .login-popup').fadeOut(300 , function() {
        $('#mask').remove();  
    }); 
    return false;
    });
});

</script>
  • 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-13T23:11:50+00:00Added an answer on June 13, 2026 at 11:11 pm

    It could be possible that google breaks their normal page out of iframes or atleast checks for their existance and denies functionality (although i could not directly find this in the maps.google.com source, but then again.. its a mess 🙂 ).

    Maps.google.com itself provides iframe embed source on maps.google.com though (press the ‘link’ icon (linked chains icon)).

    For your specific case the iframe source would be:

    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/?q=USA&amp;ie=UTF8&amp;hq=&amp;hnear=Verenigde+Staten&amp;t=m&amp;z=4&amp;ll=37.09024,-95.712891&amp;output=embed"></iframe><br /><small><a href="http://maps.google.co.uk/?q=USA&amp;ie=UTF8&amp;hq=&amp;hnear=Verenigde+Staten&amp;t=m&amp;z=4&amp;ll=37.09024,-95.712891&amp;source=embed" style="color:#0000FF;text-align:left">Grotere kaart weergeven</a></small>
    

    Give it a try. Maybe this will solve your problem.

    ( I just noticed the iframe source uses the dutch text “Grotere kaart weergeven”, which means “Display full map”. Replace as you see fit )

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

Sidebar

Related Questions

I am trying to show a google map using the following code: <embed height=400
I am using following code to show video on my website. It is working
I am using the following code to show percentage using String.Format but I also
I'm using following code to show loading message in JQuery mobile. But the loading
I'm using the following code and it's working, getting values back etc, but the
I am using the following extract of code to show markers on my map,
I am using following code to show a spinning wheel: $(#loading) .hide() .ajaxStart(function(){ $(this).show();
I am using the following code to show some labels and a textview in
I am using the following code to show a jQuery UI dialog when the
I'm using the following code in an attempt to show a dialog with a

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.