Ask Search:
Sachithanandham KumaraguruparanSachithanandham Kumaraguruparan 

HomePage Component - List views, related list hover links not loaded.

Hi All,
 
 
I have included a homepage component with Javascript to have dynamic manipulation of few fields of an object. Below is the script. But after inclusion of this component in the home page layout, related-list hover links are not getting loaded. Also none of the list views displays anything. The list views shows 'loading..' in the left bottom of its frame and its struck there. Does my code have anything that stops sfdc features to work as expected.
 

function callMeNow(){
 
    var contactNotFound =parent.document.getElementById('00NP0000000XXXX');
    var contactNotFoundDetail =parent.document.getElementById('00NP0000000XXXX_ilecell');
    if(contactNotFound != null){
        contactNotFound.outerHTML="<a href=\"\/003\/e\?nooverride=1\&retURL=\/a0F\/o\" target=\"_blank\"> Click Here To Create New<\/a>";
    }
    if(contactNotFoundDetail != null){
        contactNotFoundDetail.innerHTML="<a href=\"\/003\/e\?nooverride=1\&retURL=\/a0F\/o\" target=\"_blank\"> Click Here To Create New<\/a>";
    }
 
    return true;
}
 
window.parent.onload=function(){
    if((window.parent.location.href.indexOf("/a0F")>0 || window.parent.location.href.indexOf("%2Fa0F")>0)){
        callMeNow();
    }
    return true;
}
Matt BrownMatt Brown
Since this is technical in nature I would ask that you post on the Developer Discussion Boards for developer expertise. http://boards.developerforce.com/t5/General-Development/bd-p/general_development
Nimit WaliaNimit Walia
This issue is due to the onLoad function call which somehow overrides the default body onLoad function when the page is rendered. To overcome this, in your onLoad function, call the bodyOnLoad() javascript function. This will load the related list hovers. Please let me know if this helps...