• iamshaam
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

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.

 

 

<br> <script>
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;
}

</script>