Tech Support > Microsoft Windows > Windows CRM > Linking an iframe to a unique intranet account record page
Linking an iframe to a unique intranet account record page
Posted by gtp101 on December 11th, 2007


We have an internal client database website that I'd like to link to a custom
tab within CRM (as an iframe).
Each record/url in the client website has a client number. This client
number is the same as the "AccountNumber" within CRM.

So I want AccountNumber '7130' to display this url within my custom iframe
tab:
http://intranet.website.com/apps/com...y.asp?cno=7130

The account name also matches exactly, so if it is easier to build the url
based on the name, that would work too.

Thanks in advance...

Posted by gtp101 on December 11th, 2007


FYI, here's what I've done thus far:

1. Create an iframe tab. Tab is called "iframe"
2. Created an iframe section within that tab, the iframe properties tell me
the name of the iframe is "IFRAME_test"
I also had to enter url "http://" because it wouldn't let me leave it blank.

3. My OnLoad script is:

if (crmForm.all.accountnumber.DataValue != null)
{
document.all.IFRAME_test.src =
"http://intranet.website.com/apps/company/body.asp? cno=" +
crmForm.all.accountnumber.DataValue;
}

However, I just get a page cannot be displayed error.

Again, the CRM "accountnumber" field has the value I need to parse to the
url. accountnumber 7130 would equate to url:
http://intranet.website.com/apps/company/body.asp? cno=7130

Am I close?


Posted by gtp101 on December 11th, 2007


Ok, the method I listed previously worked, I just had to use a different
field. Looks like our intranet used a different client identifier.
Nonetheless, I just updated the field in CRM, and everything works as
expected

"gtp101" wrote: