Results 1 to 7 of 7

Thread: tabs and google maps

  1. #1
    Join Date
    Jul 2007
    Location
    Qld, Aust
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default tabs and google maps

    1) Script Title: ajaxtabs

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...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

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

    Default

    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/s...d.php?p=105217

  3. #3
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    hey admin this is the url to the page

    http://www.oz-local.com/directory/Ki...nnis-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
    Hey new design new look, goto xudas for personal webdsign help.. (:

  4. #4
    Join Date
    Jul 2007
    Location
    Qld, Aust
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

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

    if you click on the url

    http://www.oz-local.com/directory/Ki...nnis-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

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

    Default

    From what I can tell you're actually using Tab Content script, not Ajax Tabs? Anyhow, for your DIV that contains the Google Maps, all I see is:

    Code:
    <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

  6. #6
    Join Date
    Jul 2007
    Location
    Qld, Aust
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

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

    Default

    Hi:
    Did you manage to solve the problem? I just checked your page, and it seems to be working now.

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
  •