Tech Support > Microsoft Windows > Windows CRM > Showing entities in an iFrame
Showing entities in an iFrame
Posted by Chaitanya on July 13th, 2006


var navActivityHistory;
navActivityHistory =
document.all.navActivityHistory;

if (navActivityHistory != null)
{
navActivityHistory.style.display = "none";
document.all.IFRAME_HistoryFrame.src="/sfa/conts/areas.aspx?oId=" +
crmForm.ObjectId +
"&oType=2&security=852023&tabSet=areaActivityHisto ry";
}
else
{
alert("navHistory Not Found");
}


The above code is used to retrieve specific information into an iFrame.Can
anyone tell me what the variable "navActivityHistory" is used for?? Is it a
pre-defined variable in CRM?? why r we using it in "document.all.*".
And,what is tabset...can u give a brief description about this!!!

Thank You
Chaitanya.

Posted by Niths on July 13th, 2006


navactivityhistory is the navigation link to the history of activities
related to a particular entity.

document.all.* is used because thats the hierarchy to be followed to access
an element inside a document. you can also write this as
document.crmForm.all.*

HTH,
Niths

"Chaitanya" wrote:


Similar Posts