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

  • Home
  • SEARCH
  • 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 583341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:46:56+00:00 2026-05-13T14:46:56+00:00

hopefully a simple question here. I’m running a WordPress blog that has a bunch

  • 0

hopefully a simple question here.

I’m running a WordPress blog that has a bunch of links to different cities, which point to a location on a Google map.

My current setup involves having an iframe for each link, and that iframe pops up in a thickbox when it is clicked.

Now that my list of cities has grown, I have many, many iframes being pre-loaded behind the scenes while the page is loading….and this is an issue.

My thought was to just have each link update the src of the iframe, but I think my thickbox is throwing that off.

This was the javascript code I was trying to use to update the link..

document.getElementById('map_frame').src = new_url;

And here would be an associated link that would trigger this…

<li class="sub_li">
  <a href="#TB_inlinemodalContent?height=700&width=500&inlineId=map_frame" onclick="switch_map('bregenz');" title="Bregenz, Austria" class="thickbox">bregenz</a>
</li>

Where, new_url is populated via a large switch statement (and by using trace debugging I know that at least that works).

However, when the lightbox pops up, the map that is shown never changes…it is simply the initial one that I pre-load.

  • 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-13T14:46:56+00:00Added an answer on May 13, 2026 at 2:46 pm

    Possibly the thickbox removes your onclick handler, you should instead of that, add code to add your click handler to the links on another context, like:

    <script type="text/javascript">
    $(function() { //when the document is ready
      $('a.thickbox').bind('click',function() { //bind a click handler all the a elements with thickbox class
        switch_map($(this).attr("title")); //execute your function
      });
    });
    </script>
    

    And instead of getting the title attribute, you could add a new one, named “value” or “city”, and put there the value you want to pass to the switch_map function..
    I’m assuming you can use jQuery to do this.

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

Sidebar

Ask A Question

Stats

  • Questions 303k
  • Answers 303k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Scott Gu talks about Dynamic linq here May 13, 2026 at 8:38 pm
  • Editorial Team
    Editorial Team added an answer JEdit seems to be very scriptable with Java, BeanShell, Jython… May 13, 2026 at 8:38 pm
  • Editorial Team
    Editorial Team added an answer Try to use WCF Service to connect to your DLL.I… May 13, 2026 at 8:38 pm

Related Questions

Simple question, hopefully a simple answer: I'd like to do the following: private DateTime
Hopefully this is a simple question for a jQuery newbee. Is it possible to
Ok, I looked at other questions and didn't seem to get my answer so
Ok, simple problem hopefully. I have started to make a simple server for a
Currently I am writing a program for an introductory Java class. I have two

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.