PDA

View Full Version : Tab Content Script with 2 embedded iframe Google maps



2graphic
07-16-2008, 09:16 PM
1) Script Title: Tab Content Script (v 2.2)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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 (http://btal.2graphic.co.uk/test-maps.html).

This is the same page with the script on where the second map goes off centre (http://btal.2graphic.co.uk/test-no.html).

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

ddadmin
07-17-2008, 12:57 AM
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 (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm) instead, and using the built in IFRAME mode to display the two Google maps. This should fix the issue you're having.