PDA

View Full Version : tabs and google maps



arminium
09-24-2007, 10:01 PM
1) Script Title: ajaxtabs

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

3) Describe problem:


i am using ajaxtabs with content on same page , it works great, except for 1 tab that has google maps on it, the map displays but it is over to the left inside the window, if i refresh the page whilst on the map tab the map will center to the little arrow , example can be seen at

http://www.oz-local.com/directory/Ki...nnis-Club.html

Thanks in advance


cheers Jason

ddadmin
09-24-2007, 10:39 PM
The URL you gave above doesn't work. Anyhow, how are you embedding Google Maps to be shown inside the content DIV? You should be using an IFRAME for this to work reliably. See this thread: http://www.dynamicdrive.com/forums/showthread.php?p=105217

insanemonkey
09-24-2007, 10:54 PM
hey admin this is the url to the page

http://www.oz-local.com/directory/Kiama-Tennis-Club.html

and I see what you mean...

and google maps will most like not work correctly in that as it looks if you refresh your page, it looks fine

arminium
09-24-2007, 11:12 PM
http://www.oz-local.com/directory/Kiama-Tennis-Club.html

if you click on the url

http://www.oz-local.com/directory/Kiama-Tennis-Club.html

and then click on map tab it shows the area but not the address, its as if it is locating relative to the page

if you then refresh while the map tab is on focus it centers it properly,

it works fine out of tab just not in tab

i pasted url twice just incase it shortens again

ddadmin
09-25-2007, 07:46 AM
From what I can tell you're actually using Tab Content script (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm), not Ajax Tabs? Anyhow, for your DIV that contains the Google Maps, all I see is:


<td><div id="map" style="width: 425px; height: 250px"></div></td>

How are you populating this DIV with the actual map? I'm fairly certain the fact that it's not initially added to the page, but dynamically added, may be the cause of the map not showing the desired address to begin with. I haven't worked with Google maps inclusion before, so I may be wrong.

BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm

arminium
09-25-2007, 08:59 AM
yes it is created dynamically , however it displays fine when not in tab, can we tell the tab to focus but not display?

Oh anfd sorry notice has been re-instated

i had a friend do some tidying up for me and he must of removed it or i did , anyway its back and will stay

ddadmin
09-25-2007, 08:25 PM
Hi:
Did you manage to solve the problem? I just checked your page, and it seems to be working now.