Search code examples
jqueryversiondotnetnukelibraries

How to set specific JQuery version using JavaScript Libraries in DNN


How can I set the specific version of the JQuery I would like to use in Code using JavaScript Libraries in DNN? There are documentation, but it is not specifically showing the exact parameters in brackets. I had a look at this wiki: http://www.dnnsoftware.com/wiki/javascript-libraries#Usage_5

JavaScript.RequestRegistration(CommonJs.jQuery, 3.2.1);

The number gives an error in VS. To what must I change it to?


Solution

  • The proper syntax is:

    JavaScript.RequestRegistration("jQuery", new Version(1, 9, 1));