CRM Learning

Display Associate View in IFrame

/**********  IFrame Onload *****************/
if(crmForm.FormType !=1)
{
var pPFrame = document.all.IFRAME_ProductPurchase;
var pPWindow = document.frames[‘IFRAME_ProductPurchase’];

document.all.IFRAME_ProductPurchase.src=”/userdefined/areas.aspx?oId=” + crmForm.ObjectId + “&oType= ” + crmForm.ObjectTypeCode + “&security=” + crmFormSubmit.crmFormSubmitSecurity.value + “&tabSet=new_contact_new_customerproductpurchase”;

pPFrame.name = pPFrame.id;
pPFrame.style.borderWidth = ‘0px’;
pPFrame.onreadystatechange= function()
{
if(pPWindow.document.readyState == ‘complete’)
{
pPWindow.document.body.style.backgroundColor = ‘#eef0f6’;
pPWindow.document.getElementsByTagName(‘TABLE’)[0].style.borderLeftWidth = ‘0px’;
}
}
}
else
{
document.all.IFRAME_ProductPurchase.src=”/aspx/IFrameMassage.htm”;
}
/*********** IFrame Code Ends Here **********************/

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s