web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

IFrame maps problem

(0) ShareShare
ReportReport
Posted on by

So I have inserted an IFrame into our contacts form that contains bing maps. I have also created an event to run the following jscript so that when the contact form loads it will automatically search the address. My Problem is that when u load a contact now it will let you use it for about 5 seconds and then automatically skip down to the IFrame as it has found the search address. Is there anyway to stop this? 

 

function MapURL() 

var ContactStreet = crmForm.all.address1_line1.DataValue; 

var ContactCity = crmForm.all.address1_city.DataValue; 

var ContactState = crmForm.all.address1_stateorprovince.DataValue; 

var ContactZip = crmForm.all.address1_postalcode.DataValue;

 

var MapURL = "http://www.bing.com/maps/default.aspx?v=2&where1=" + ContactStreet + " " + ContactCity + " " + ContactState + " " + ContactZip;

 

if (MapURL != null) 

   { 

      crmForm.all.IFRAME_Maps.src = MapURL; 

   } 

}

 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    apurv Profile Picture
    926 on at

    Hi Michael,

    I think I understand your issue. You might want to set the focus back to some different control. Here's the sample for using Set Focus method msdn.microsoft.com/.../gg334266.aspx

    You can also check a different way of bing maps integration here blogs.msdn.com/.../bing-maps-and-microsoft-dynamics-crm-online.aspx

    Let me know if that helps

    Regards,

    Apurv Ghai

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans