Previous Thread

7/25/2006 12:31:01 PM    Adding Google Map to CRM iFrame (plus dynamic content to URL)
Here's a URL for google maps: 
 
http://www.google.ca/maps?f=q&hl=en&q= 
 
If I were to enter: 
 
http://www.google.ca/maps?f=q&hl=en&q= radio beacon inc. loc: toronto 
 
It would return the company Radio Beacon Inc. located in Toronto. 
 
I can dump this into an iFrame URL but I don't want it to be hardcoded. I 
 
would like to pass the Account Name the URL. 
 
I've seen some posts but I have not been able to make it work. I hope 
 
Michael Höhne is out there to help me too :) 
 
From OnLoad on my Account Form I have added this code: 
 
crmForm.all.IFRAME_AccountMap.src = http://www.google.ca/maps?f=q&hl=en&q= + 
 
crmForm.all.name.DataValue; 
 
AccountMap is my iFrame 
 
name is Account Name 
 
What I've noticed is that my form doesn't seem to push this data... It's 
 
acting as if it only reads what ever I enter in the URL field of the iFrame. 
 
So, what I'd like is some code that will dynamically pull the Account Name 
 
and fill it in my URL where I need it. 
 
After that I might like to add more, such as City. 
 
Any help would be excellent! 
 
Eric



7/25/2006 10:16:45 PM    Re: Adding Google Map to CRM iFrame (plus dynamic content to URL)
Yes I'm here and I have tried your code without any problem (beside the fact 
 
that it doesn't find my companies because they are not located in Canada). 
 
I'm using "about:blank" as the initial frame source and after setting the 
 
url exactly as you have listed, Google Maps is displayed. However I receive 
 
some script errors on Google telling me that an html element cannot get the 
 
focus because it's invisible, deactivated or does not support focusing. This 
 
may be an issue because the IFRAME is located on a separate tab that is 
 
invisible while setting the url. 
 
Do you have a similar problem, or don't you see Google at all? 
 
-- 
 
Michael 
 
http://www.stunnware.com/crm 
 
---------------------------------------------------------- 
 
"Eric Rist" <EricRist@discussions.microsoft.com> schrieb im Newsbeitrag 
 
news:F6AB25C9-56CD-4001-9408-05C4CA588187@microsoft.com...