0

Yahoo Maps from my localhost IE

Does anyone know if Yahoo Maps is a non-authenticated web service?

I have an example running from my localhost and it runs ok in Firefox but not in IE. If I change my APPID to something thats not an APPID (i.e. remove characters) it still works in Firefox and not in IE.

This is making me think there is something wrong with the APPID itself.

My app will eventually be deployed to an Intranet environment.

Many thanks for reading and any help much appreciated

John

by
2 Replies
  • I have an update, made some progress. See the code snippet below, all ok in Firefox but in IE (my target browser) it fails on the line:

    CODEBOX
    var currentGeoPoint = new YGeoPoint($('#txtLatitude').val(), $('#txtLongitude').val());


    What I cannot understand is why will IE allow the MAP API Code to run and manipulate the MAP object and fail on this one line.

    Could this all be to do with Tools/Intranet Options/Security and trusted sites etc? My URL locally is "http://localhost:4724/LMS/Site.mvc/Details/77" if thats any help.


    CODEBOX
       <script type="text/javascript">

    $(document).ready(function() {

    jQuery("textarea[class*=expand]").TextAreaExpander(); // initialize all expanding textareas, new code, john s 10/08/2010

    var geoPoint;
    // Create a map object
    var map = new YMap(document.getElementById('map'));

    // Add map type control
    map.addTypeControl();

    // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
    map.setMapType(YAHOO_MAP_REG);

    // Display the map centered on a geocoded location
    map.drawZoomAndCenter("United Kingdom", 12);

    // Add map type control
    map.addTypeControl();

    // Add map zoom (long) control
    map.addZoomLong();

    // Add the Pan Control
    map.addPanControl();

    // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
    map.setMapType(YAHOO_MAP_REG);

    // Display the map centered on a geocoded location
    map.drawZoomAndCenter("United Kingdom", 12);

    var currentGeoPoint = new YGeoPoint($('#txtLatitude').val(), $('#txtLongitude').val()); // FAILS IN IE ON THIS LINE!! Unspecified Error popup dialogue box
    map.addMarker(currentGeoPoint);


    });
    0
  • John,

    You might try here: http://tech.groups.yahoo.com/group/yws-maps/

    Cheers!
    Robyn
    0

Recent Posts

in General Discussion at YDN