28. Mai 2010 07:39
function IsActive(oTabContent)
{
var o = element;
while (!IsNull(o) && o != oTabContent)
{
o = o.parentElement;
}
return !IsNull(o);
}
//Link wenn alle 5 Firmenfelder ausgefüllt wurden!
myGoogleURL = "http://maps.google.com/maps?f=d&source=s_d&saddr=" + crmForm.all.new_startpunkt.DataValue + "&daddr=" + myFirma1 + "+to:" + myFirma2 +"+to:" + myFirma3 + "+to:" + myFirma4 + "+to:" + myFirma5 + "&hl=de&output=embed&z=7"
//Zuweisung der URL
document.getElementById("IFRAME_GMaps_d").innerHTML = "<iframe id=IFRAME_GMaps_d class=ms-crm-Custom width='100%' height='100%' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='"+ myGoogleURL +"'></iframe>";
//Externe URL Link erzeugen für Print-Ansicht
crmForm.all.new_linkgoogle.DataValue = myGoogleURL + "&pw=1";
crmForm.all.new_linkgoogle.style.color = '#0000FF';
crmForm.all.new_linkgoogle.style.textDecorationUnderline = true;
crmForm.all.new_linkgoogle.style.fontWeight = 'bold';
var folderunc = crmForm.all.new_linkgoogle.DataValue;
{
crmForm.all.new_linkgoogle.ondblclick = function()
{
window.open(folderunc);
}
}
28. Mai 2010 21:18
crmForm.all.IFRAME_GMaps.src = myGoogleURL;
31. Mai 2010 09:08
If so, the innerHTML of the IFRAME will be replaced by the code needed to show GoogleMaps.
31. Mai 2010 11:59
31. Mai 2010 12:01