Dreamweaver template declaration affects Google Map loading

My Dreamweaver Template declaration statement
<!-- InstanceBegin template="/Templates/kayaking.dwt" codeOutsideHTMLIsLocked="false" -->
is preventing a Google Map from loading.  It works fine in IE and Firefox, but not in Safari and Chrome.  The weird thing is, if I move it above the following declaration is works fine.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Dreamweaver inserts and locks this code so the only way I get it to work is to either detach it from the template completely or edit the code in a text editor before upload.  I need a different fix.  I'm hoping that there is actually other code in my page that is leading to the declaration problem although it seems unlikly.
For reference here is the html that calls the map
<a href="javascript:;" class="content" title="Location Map" onclick="mopen('map1');loadScript();return false">Location Map</a></p>
                  <div id="map1" style="visibility:hidden;"> <span class="content"><a href="javascript:;" class="closemap" onclick="mclose('map1')" title="Close Map">Close</a> </span>
                    <div id="googlemap1"> </div>
                  </div>
For the code or to see for yourself go to http://www.outbackadventures.com/trips_classes/kayaking/kayak_classes/intro_paddling/index 2_3.html
Any help would be much appreciated.  Thanks.

The problem has been solved.  It seems that Google Chrome and Safari do not entirely ignore comment tags such as Dreamweaver's template declaration.
In my "lazy load" Google Map code taken from a Google employee suggestion
http://groups.google.com/group/Google-Maps-API/msg/4e2acbe1ca7f0324
Example at http://imagine-it.org/google/gmaps-samples/dynamicloading.html
there is this line of code
document.documentElement.firstChild.appendChild(script);
As I understand it Chrome and Safari may read the Dreamweaver template comment
<!-- InstanceBegin template="/Templates/kayaking.dwt" codeOutsideHTMLIsLocked="false" -->
as the first.Child and therefore results in invalid html causing an error and no loading of the script.
This was solved by the help of folks at this post:
http://groups.google.com/group/google-maps-api/browse_thread/thread/101bc4c59d098367/0decf 0c096119f82#0decf0c096119f82
Essentially the code above needs to be modified so that it reads from the head section rather than from above it. To fix this, replace the above code with either one of the following lines:
document.getElementsByTagName(\"head\")[0].appendChild(script);
document.documentElement.getElementsByTagName(\"head\")[0].appendChild(script);

Similar Messages

  • Google map loading delay in Adobe AIR application

    Hi,
       When I try to load Google map API on AIR application,it is taking too much time to load and the application freezes for 50-60 seconds.But it is working fine in normal flex applications.Please give a solution for this.

    See this bug for more information and a workaround: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2750

  • After most recent update, google maps will not load, i'm using cricket a600 USB on a dell inspiron windows 7?

    I can use IE browser and Google maps loads fine. I can use my droid bionic as a hot spot (using Verizon 4GLTE) and Google maps loads fine. I can go to McDonald's and use their WI-FI and it loads fine. But my CRICKET a600 USB is worthless using Firefox 8. I need Google maps for my lively hood. Very frustrating. I don't care to use IE as my main browser..please advise. Thanks, STEVE in OMAHA, NE

    well done ipodincalifornia and IlliniVishal!
    (so this can sometimes work with a Vaio too? good lord.)
    it might also be worth heading to the support pages for your laptop makes and models to check for any chipset updates or other updates relevant to the USB. i've seen some hints lately that some peculiar issues with USB on HPs could be resolved by a chipset update. (although those problems seem to present in different ways than a "Firmware Update Failure".)
    love, b

  • Firefox suddenly loads Google Maps as mobile page

    I have been using Google Maps in FF in Ubuntu on my desktop PC for many years.
    The bookmark is stored as http://maps.google.co.uk/maps & shared with Chromium via Xmarks.
    In the last few days, whenever I use this bookmark in FF, the address bar switches to http://maps.google.co.uk/m/places?oi=nojs#ipd:mode=home and the site is a mess.
    This post describes the same thing exactly & tells me FF must be loading the mobile page:
    http://www.techsupportforum.com/forums/f131/google-maps-loads-the-mobile-page-623890.html
    If I enter the address manually, I get the same result.
    Chromium continues to work as normal.
    I did recently add NoScript to FF but have tried "allowing all this page" with no effect.

    It is possible that the server gets confused by the Ubuntu in the user agent.
    *Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
    You can try to modify the user agent and remove that part.
    *Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
    You can do that by setting the general.useragent.override pref on the about:config page or use this extension:
    *User Agent Switcher: https://addons.mozilla.org/firefox/addon/user-agent-switcher/
    *https://support.mozilla.org/kb/websites-incorrectly-report-firefox-outdated-or-in
    Note that you will have to update the user agent if you update Firefox (Firefox 12has been released)

  • Google Maps slow to load

    Hi,
    I appear to be having issues with Google Maps and Firefox.
    Google Maps loads fine but then once trying to utilise the maps every operation is extremely slow and clunky, sometimes taking up to 30 seconds to complete the command.
    I have tried Google Maps on Safri and don't have the same issue so can only assume it is a compatibility issue and nothing to do with internet speeds. Furthermore, I don't appear to be having any similar issues with other websites........for instance, I can watch 1080p You Tube videos without much need for buffering.
    Any suggestions in laymen terms please as I'm no where near technical enough for the usual jargon ;)

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • 1.3.5 update - lookup map from Contacts doesn't work for Sprint Nav or Google maps

    Is anyone able to tap on a contact's address in order to launch Sprint Navigation? Or even Google Maps?  In my case, Google maps alway navigates to *my* address, not the contact's address I tapped on.
    Worse, my Pre hangs on the Sprint Nav splash screen when choosing that option -- similar to what others are noticing. I copied this from another forum, as it describes my problem as well:
    I updated Default Applications to launch Sprint Navigation for addresses. It certainly launches from an open Contact, but locks up on the splash screen. It never displays a map (nor anything else), and the menu doesn't function. Completely unresponsive. If I launch the app stand-alone, it works fine, so Sprint Navigation doesn't seem to be broken. It just doesn't work launching from a contact address.
    I've switched the default app back and forth between Google Maps and Sprint Navigation, and did a couple restarts to no avail.
    Regards,
    Paul
    Post relates to: Pre p100eww (Sprint)

    Thanks for the feedback and link to confirm this issue.  I confirmed what the other fellow wrote on that thread:
    if you already have Sprint Nav open, then click the address is goes fine.
     I also "fixed" the issue in which Google maps loaded but always went to *my* location. I fixed this by exorcising the unofficial Google Latitude version of Maps from my Pre.I picked up this version by following a hyperlink to the beta Latitude a number of days ago, and ever since it had replaced the regular G Maps. I was able to clear Latitude off my device by pointing the browser to maps.google.com to reload the original flavor.After that, I am able to properly launch G Maps from a contact's address field.  Whew!
    Regards,
    Paul
    Message Edited by paul_flory on 12-30-2009 11:04 PM

  • Image.createImage() on benq-siemense M81 and SE z530i (using google maps)

    I'm getting static google maps to show them in my j2me application. There is one problem...
    Code for shoing image:
    try {
                byte[] preimage  = gm.retrieveStaticImage(<params>);
                this.my_image = Image.createImage(preimage, 0, preimage.length);
                this.getImageItem().setImage(my_image);
    } catch (Exception ex) {
                ex.printStackTrace();
    }Data coming to preimage. Size of it is OK. But Image.createImage() method doesnt work on z530i. I dont see any messages with exceptions... Whats wrong? Maybe data format? I tryed GIF, JPG, PNG32. Result is the same...
    PS
    Images from other resources (not google maps) loading whithout problems.
    Edited by: fewl on Aug 14, 2008 3:19 PM

    Hello
    I rooted my Sony Ericsson Arc S by following your excellent and easy to understand instuctions in order to remove some of the unwanted crap that came preloaded on the phone and in order to install the rooted version of Avast antivirus/antitheft app.
    Everything has worked perfectly well for the last few months since doing this however now I am unable to update the phone via the sony ericsson update service.
    Please advise
    Cheers
    Ian

  • Where is Poynt and Google Maps

    Anyone know where or when Poynt will be available on Z10? I used that app constantly on my old Blackberry. Any other good alternatives to Poynt?
    Also cant download google maps? Any suggestions? Thx

    I have google maps loaded on by Z10 by sideloading it.  Don't use Poynt so don't know if it converts properly but would imagine it does.  Check out the sideloading of andriod apps as there are a lot of apps out there that are not in the BB store that convert just fine.

  • Google maps and google help not loading anymore! help!

    Google maps and google help aren't loading since I've updated firefox. Works in Chrome no problem. Tried everything listed here: https://support.mozilla.com/en-US/kb/Error%20loading%20web%20sites, re-installed flash, cleared cache, etc... what am I missing?

    Anyone have any ideas?

  • Images do not load in foxfire, but load ok in IE. such as the zoom bar in google maps

    I'm using Firefox 9. when I goto sites such as amazon, the images do not load. I can right click on the image box and select view image and the image will be displayed in a new page. An other example is google maps. The zoom bar on the left does not display. If I move the cursor over where the zoom bar is suppose to be the cursor will change to the hand and I can left click to work the zoom. If I bring up Internet Explorer all images, etc work ok.

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Sluggish at initial opening and loading websites, google maps print and images not working right, problems are not present in Chrome and Safari

    Firefox is very slow opening. Web pages load slowly. When I go to images in a Google search, the pictures take a long time to load, and when I click on an image, then the back arrow, the loading time for the previous page is very slow. When I print a Google map, it is small, rather than full-page. In Google Chrome or Safari, the same actions product immediate results. I cannot get Google desktop to work.

    This sounds like a network problem, since it goes away when you connect through a different network. You'll need to talk to your university's IT department about this.

  • How to load the google map into an empty movieclip

    how to load the google map into an empty movieclip ?  Thank you

    if you're using as3, check the google maps api for flash.  if you're using as2, check the google maps api for javascript and use the externalinterface class in flash.

  • Content viewer crashes after loading google map

    Greetings! I am making progress, finally on my first Edge Animate CC 2014 / InDesign CC 2014 DPS edition.
    I have finally gotten to the pplace where I need to display a Google Map for two different locations, each map will be loaded with a different button on click and replace the previous map. It works fine in the browser, but when I upload my folio through InDesign and load it into the Adobe Content Viewer on an iPad (Air) after clicking the MAP button (either one), the map loads and appears to be fine, then after about 10 seconds, the Viewer crashes. I have tried it repeatedly and by clicking both map buttons, the produce the same results.
    What should upload for someone to look at, or has anyone else ran into this issue?
    Below is the code for the Action(s):
    downtownMapButton:
    // insert code for mouse click here
    var mapFrame = sym.$("mapContainer");
    var map ='<iframe width="'+mapFrame.width()+'" height="'+mapFrame.height()+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://mapsengine.google.com/map/embed?mid=zE2zuZhUFeMU.kVkOwZos-Fiw" ></iframe>';
    mapFrame.html(map);
    // Show an element
    sym.$("mapBox").show();
    // Show an element
    sym.$("downtownPointerSym").show();
    // Show an element
    sym.$("mapContainer").show();
    sym.$("closeButtonSym").show();
    sym.$("prestonPointerSym").hide();

    Found a solution.
    https://blogs.adobe.com/indesigndocs/2013/06/memory.html
    Hopefully this helps someone else.
    Cheers!
    S

  • Template using google maps

    I've created a template in Xcelsius beta in ondemand using the Google maps addon component, I have successfuly saved this and want to create a visualisation based upon it. When I create this visualsation I can select my data source, whici is the table below:
    SK8 3NG 28
    FY6 8JU 22
    FY4 1EA 13
    OL8 3QE 13
    SK5 7DY 12
    Everything appears to work fine except for when the data is diplayed in the map only one point is mapped which happens to be the fourth on in this list.
    This may be a beta problem or it could be because I'm doing something silly.
    Thanks

    I've answered my own question here:
    I was putting all my data into the addreses field instead of separating addresses, from pin sizes and from labels.

  • Loading external div resp. java script resp. google maps resp. php in adobe edge animate

    Hi there,
    I made some nice webpage with adobe edge, and additionaly I would like to implement store finder made with google maps. Any idea how I should do this?
    Here the website:
    http://www.heelbopps.com
    And here the map:
    http://www.heelbopps.com/maps/map.php
    What I intend to to is to make a div between contact and disclaimer and load map.php in this div.
    Here how does the look the file: map.php
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <title>Google Maps AJAX + mySQL/PHP Example</title>
        <link href="style.css" rel="stylesheet" type="text/css" />
        <script src="http://maps.googleapis.com/maps/api/js?sensor=false"
                type="text/javascript"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
        <script src="storeLocator.js" type="text/javascript"></script>
              </head>
              <body style="margin:0px; padding: 0px;" onload="load()">
                        <div>
                                  <input type ="text" id="addressInput" size="10"/>
                                  <input type="button" onclick="searchLocations()" value="Suche"/>
                        </div>
                        <div><select id="locationSelect" style="width:100%; visibility: hidden"></select></div>
                        <div id="map" style="width: 100%; height: 80%"></div>
              </body>
    </html>
    How can I implement this code in adobe edge? Please help, because I am clueless, and it has to be done today.
    Many many thanks in advance...
    Stanko

    Dear Stanko, did you get my private message about fixing top menu ?
    Zaxist

Maybe you are looking for

  • Airport does not work after upgrade to windows vista SP1

    Hi, I have a MBP running windows vista 32 bit under bootcamp. For some of my professional software, I need windows. Up to now, everything runs OK.I've upgrade to bootcamp 2.1 and everything still runs just fine. However, I wanted to install SP1 becau

  • Just got back

    I just got back from basically spending the entire day at the apple store. I made an appointment with an apple genius and showed him my problem. He said that this is a problem and that we will give you a new one. So I went back to my house to grab my

  • Import from camera always fails for a number of images

    Since recently (maybe update to Aperture 3.2  or Lion 10.7.2 or so), I have serious trouble when I import potos from my camera (it s a Canon 7D, but I got the very same issue when importing from my iPhone). Aperture (reproducible, always!) imports a

  • IWeb 09 photo album loses hyperlinks to external pages

    I have an album of images on my site and have hyperlinked the image caption text to open videos on external pages. This always worked fine in iWeb 08, in fact the images themselves on the main album page automatically became hyperlinked, which was co

  • Wireframing: Illustrator or InDesign?

    I am beginning to do web page/UX wireframing at a much more serious level these days. I have a long history with Illustrator and respect its power. However..when it comes to handling type and objects consistently, I find that InDesign is the winner.