Results 1 to 2 of 2

Thread: Tab Content Script with 2 embedded iframe Google maps

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Script with 2 embedded iframe Google maps

    1) Script Title: Tab Content Script (v 2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem: Script set-up OK and works to display two embedded iFrame Google maps (to show location of two offices). Problem is when switching to the second map the map is off centre and the Google location marker (A) is off the top left corner of the screen.

    These are the two maps side by side with correct centring/positioning.

    This is the same page with the script on where the second map goes off centre.

    PS: Thanks for the great scripts and thanks in advance for any help.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm not familiar with the Google Map API, but that shouldn't really matter. The problem most likely is due to the fact that you're embedding the Map IFRAMEs within each DIV that in turn is being toggled by the script. Long story short, this probably is what changes the orientation of the maps when they're actually shown.

    I'd try switching to Ajax Tabs Content script instead, and using the built in IFRAME mode to display the two Google maps. This should fix the issue you're having.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •