CodeResearcher
CodeResearcher

Reputation: 21

CRM 2011 - How to disable JS library?

AFAIK in CRM 2011 there is only the possibility to disalbe a JS function for a field. Is there also a way to disable a single JS library on a form?

Upvotes: 0

Views: 611

Answers (1)

Joshua
Joshua

Reputation: 3603

Is this for development purposes only, or is it going into production? If for development, you can use one of any number of browser-based script blocking plugins (noscript plugins etc.) and selectively block / enable scripts.

If for production, you can write a script that removes the offending tag from the DOM after the DOM is loaded. This could be problematic, and unsupported as others have indicated, but it is under the assumption that the core CRM 2011 script code is not accessible (or removable) to developers. Example code (using jQuery for simplification):

$(document).ready(function(){
  $('script[src="url_to_offending_script_here"]').remove();
});

Upvotes: 1

Related Questions