We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Quote from: therebechips at Jan 16, 2009, 07:22 AM

    Can you copy the entire page source into an text file and upload it somewhere?

    live view : http://vp.hip-hopbase.com/index.php?id=362

    this is my temp experimental site
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 29774
      • 386 Posts
      I can see the problem: you have another element on the page with id ’map’ - this is the same name you’re using for the first Google map!
      <map name="Map" id="Map"><area shape="rect" coords="13,11,28,26" href="index" alt="Naslovna" title="Naslovna" />
      <area shape="rect" coords="51,11,81,26" href="mjesta-za-izlazak/muzeji/grupa-connect-u-saxu-20.-studenog" alt="Trazilica" title="Trazilica" />
      <area shape="rect" coords="102,12,121,26" href="kontakt" alt="kontakt" title="Kontakt" />
      <area shape="rect" coords="144,6,163,26" href="#" alt="favorite" title="Dodaj u favorite" />
      </map>
      
        Snippets: GoogleMap | FileDetails | Related Plugin: SSL
        • 20349 ☆ A M B ☆
        • 453 Posts
        I tried to rename the "Map" to some another id and nothing changed... the map still won’t show up huh
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 29774
          • 386 Posts
          Hi Mproject

          I stripped out everything else from the page - all the stylesheets and all other scripts except for the Googlemap include and script in the <head> and the 2 divs it creates in the <body> - and now it works.

          Try it for yourself and you’ll see what I mean.

          So most likely you have a conflict with another script on the page. Googles javascript is nicely namespaced so it’s most likely some script you’re using that is injecting into the DOM.

          You could try adding your other scripts and stylesheets back one by one and see where the conflict is.

          Cheers,

          Mark
            Snippets: GoogleMap | FileDetails | Related Plugin: SSL
            • 20349 ☆ A M B ☆
            • 453 Posts
            Quote from: therebechips at Jan 19, 2009, 07:46 AM

            Hi Mproject

            I stripped out everything else from the page - all the stylesheets and all other scripts except for the Googlemap include and script in the <head> and the 2 divs it creates in the <body> - and now it works.

            Try it for yourself and you’ll see what I mean.

            So most likely you have a conflict with another script on the page. Googles javascript is nicely namespaced so it’s most likely some script you’re using that is injecting into the DOM.

            You could try adding your other scripts and stylesheets back one by one and see where the conflict is.

            Cheers,

            Mark


            thanks--- will give it a try and post you the result wink
              BASE - Web Design Studio
              MODX Ambassador

              Website
              • 20349 ☆ A M B ☆
              • 453 Posts
              I changed it to another template (I think was modx css) and worked fine.... I can’t find what’s the trouble in my template :’(

              Something is definitely causing conflict


              EDIT: Ok, I found the problem.... I have this line
               <body onload="selectSupertags(1);selectSupertags(2);">
              that is causing the issue... worked it out with Jquery
                BASE - Web Design Studio
                MODX Ambassador

                Website
                • 29774
                • 386 Posts
                Cool - glad you worked it out smiley
                  Snippets: GoogleMap | FileDetails | Related Plugin: SSL
                  • 20349 ☆ A M B ☆
                  • 453 Posts
                  Quote from: therebechips at Jan 19, 2009, 09:47 AM

                  Cool - glad you worked it out smiley
                  Thanks

                  Hope it’s gonna help somebody if they will have similar problem
                    BASE - Web Design Studio
                    MODX Ambassador

                    Website
                    • 26931
                    • 2,314 Posts
                    Hi there,

                    thank you for that snippet, it’s working great.

                    is there a way to display "&" in the bubble? if i use "&", or as an entity "&amp;" the text coming after won’t show up. i’ll have lots of company-names listed with &s, so i would have to set an extra TV for the title and write "and" instead of using [*pagetitle*] to set the title in the bubble...

                    cheers, j
                      • 29774
                      • 386 Posts
                      @sharkbait

                      You could pass %26 instead of & as a parameter. Maybe use a PHx custom modifier to translate existing ampersands in titles to %26?

                      Possibly I need build this in in the next version.

                        Snippets: GoogleMap | FileDetails | Related Plugin: SSL