Birtviewer Unable to get property 'style' of undefined or null reference

时光怂恿深爱的人放手 提交于 2019-12-11 19:48:25

问题


I have created the following javascript function to hide or show charts and then calling it from a text item.

function showhidetab(showflag,bookmark, heightval, tab)
{
    if (tab == 'overview')
    {
            document.getElementById('overgrid').style.visibility="visible";
            document.getElementById('overgrid').style.display = "block"
            document.getElementById('overgrid').style.height= '6in';


    }

    else
    {
            document.getElementById('overgrid').style.visibility="hidden";
            document.getElementById('overgrid').style.display = "none"
            document.getElementById('overgrid').style.height='0px';


    }

}

This function is working when I run it as html or in preview. However, When I deploy the report on birtviewer view it on IE/safari etc, I get the following error

SCRIPT5007: Unable to get property 'style' of undefined or null reference

Can someone please tell me why is the report behaving differently when run through browsers and on Birtviewer/apache

Regards

Syed

来源:https://stackoverflow.com/questions/23593812/birtviewer-unable-to-get-property-style-of-undefined-or-null-reference

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!