Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

Hiding a Webresource label Using Javascript

$
0
0

I have to Hide and show a web resource ..after some research i figured there is no way in XRM and CRM 2011 to do it directly .. so wrote a Javascript method to do it..But the problem now is .. I have a Label for the Web resource .. and I have to Hide that as well..

Does anyone know the name of the Webresource Label Element Id... so that i can find it as hide that as well?

SetVisibility = function (WebResourceName, bVisiblity) {
    try {
        //debugger;
        var WebRes = document.getElementById(WebResourceName);
        if (WebRes) {
            WebRes.style.visibility = ((bVisiblity) ? 'visible' : 'hidden');
        }
    }
    catch (e) {
        var err = e.message;
    }
};  //SetVisibility

Thanks in Advance

--

Badri


Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>