Personal tools

Log in

Changes

From All n One's bxp software Wixi

Jump to: navigation, search

JQuery and bxp

1 byte added, 16:10, 30 November 2015
no edit summary
When useing jQuery in bxp you must make sure that the first line of code in your JS file is as below. Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery's case, $ is just an alias for jQuery, so all functionality is available without using $.We need to use other JavaScript library alongside jQuery, return control of $ back to the other library with a call to $.noConflict(). Old references of $ are saved during jQuery initialization; noConflict() simply restores them.
 
<syntaxhighlight lang="html4strict">