CRM 4.0 & Maps Live [ IFRAME ] RRS feed

  • Question

  • Dear All,

    Today I was looking at the webblog of CRM (http://blogs.msdn.com/crm).
    Here I found a post of the great possibilties with an IFRAME. An example was integration with MAPS LIVE.
    I immediatly thought this could come in handy with one of our customers.

    This customer uses maps a lot to send his employees to a company.
    So I kept on going and tried the following.

    I want to make use of the Routeplanning option that maps offers.
    So I've analyzed and manipulate the URL of it. I found that the GPS coordinates are needed in the link but not necessary to be correct to get the right result.
    I decided to add a tab in the accounts entity called maps and put an IFRAME in it.
    Then I replaced the street and city names in the URL for variables that are declared in the OnLoad script.
    ** Simply gets the value of the address_line1 and address_city fields **

    Now comes the problem:
    When I open the tab MAPS, Live Maps opens in the IFRAME only the map pane is freezed on loading?
    I have checked all my security settings but that is all fine! No Jscript errors are thrown or what so ever, so that is all fine (I pressume).
    It pure comes down that Live Maps " refuses " to load the route in the map pane.

    Does anybody got an idea or solution to why Live Maps refuses to load the map in the IFRAME.

    Thanks in advance!

    ** UPDATE: I've just tested the example and that is not working either :s,
    So information:
    Im working on a VPC from MS itself (link: http://www.microsoft.com/downloads/details.aspx?FamilyID=dd939ed9-87a5-4c13-b212-a922cc02b469&displaylang=en)
    Rollup 3 is installed on it

    Thursday, April 16, 2009 12:14 PM


All replies

  • Is your VPC network settings configured correctly? E.g you can browse the internet from inside the VPC?
    I like C#, JScript, CRM and helping people :)
    Thursday, April 16, 2009 11:38 PM
  • Sorry you're having problems with it. Have you tried the WebSite example. It's much simpler. If you can't get that one to work, then your VPC is likely not communicating properly with the Internet as OptimusPrime suggested.
    Larry Lentz [Microsoft Dynamics CRM MVP]
    Friday, April 17, 2009 3:40 AM
  • Hi,

    You probably have; but just to make sure ....
    Have you unchecked "Restrict Cross Frame Scripting" for the iFrame?

    You might also get a security warning using about:blank as default URL for your iFrame, it is recommended to use /_root/blank.aspx (ref. http://blog.customereffective.com/blog/2009/04/setting-blank-iframe-sources.html) instead of about:blank.

    Friday, April 17, 2009 5:46 AM
  • Hi,

    Yes i can browse the internet within the VPC no problem at all.

    Yes i've tried the website example. Only the map just doesn't load, the website does.
    Keep stuck on " Loading "

    @Morten Dybdahl
    Followed your advise too, but didn't work for me.

    Thanks for the advices advance!
    But is it possible that the LIVE MAPS is an AJAX element which doesn't work within the VPC or some kind of weird thing :-p.
    ** Security setttings are @ the lowest level **
    Friday, April 17, 2009 7:26 AM
  • try adding the maps site under your trusted sites
    Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1
    Saturday, April 18, 2009 7:15 AM
  • Hi guys,

    Sorry for the late response, but I was Ill.
    So, I've tried what you said Tiaan. That didn't do the job.

    So I am going to try some things, I will let you know when it works!
    If someone got a good idea, please tell me ;-)

    Thanks in Advance
    Thursday, April 23, 2009 6:58 AM
  • The actual link to the post Joey is talking about is: http://blogs.msdn.com/crm/archive/2009/04/15/microsoft-dynamics-crm-iframe-magic.aspx. I've heard a lot of good things about the post. This is the first time I've heard there are problems. It might be time to open a support ticket so that the techs can get into the nitty gritty of your installation and customizations.
    CRM Community Guru and Saxophonist
    Thursday, April 23, 2009 2:22 PM
  • I used the solution it works but I am in Australia. I want to change the geo location from US to Australia. how can i do that ????????

    Tuesday, April 28, 2009 4:34 AM
  • use maps.live.com instead of .com.au
    maybe that works?

    If that doesn't work, try if you can manipulate the URL. But i think Maps looks at your IP to address your location.
    Wednesday, April 29, 2009 7:13 AM
  • Hi, Try below code:
    function livemap()
    var AccountStreet = crmForm.all.address1_line1.DataValue;
    var AccountCity = crmForm.all.address1_city.DataValue;
    var AccountState = crmForm.all.address1_stateorprovince.DataValue;
    var AccountZip = crmForm.all.address1_postalcode.DataValue;
    //var MapURL = "http://maps.msn.com/home.aspx?strt1=" + AccountStreet + "&city1="+ AccountCity+"&stnm1=" + AccountState + "&zipc1=" + AccountZip + "&cnty1=0";
    var MapURL = "http://www.bing.com/maps/default.aspx?v=2&where1=" + AccountStreet + ", " + AccountCity + " " + AccountZip + "";
     if (MapURL != null)
     crmForm.all.IFRAME_map.src = MapURL;
    // check your iframe name ....and replace in last line....
    Friday, March 11, 2011 5:33 AM