JQuery and bxp
From All n One's bxp software Wixi
1.1 The advantages of using jQuery are
- Brevity and clarity: jQuery promotes brevity and clarity with features like chainable functions and shorthand function names.
- Extensible: New events, elements, and methods can be easily added and then reused as a plugin.
2.1 jQuery includes the following features
- DOM element selections using the multi-browser open source selector engine Sizzle, a spin-off of the jQuery project
- DOM manipulation based on CSS selectors that uses elements' names and attributes, such as id and class, as criteria to select nodes in the DOM
- Effects and animations
- Deferred and Promise objects to control asynchronous processing
- JSON parsing
- Extensibility through plug-ins
- Utilities, such as feature detection
- Compatibility methods that are natively available in modern browsers but need fall backs for older ones, such as inArray and each
- Multi-browser support
- Browser support
- Both versions 1.x and 2.x of jQuery support "current-1 versions" of Firefox, Google Chrome, Safari, and Opera. Version 1.x also supports Internet Explorer 6 or higher. However, jQuery version 2.x dropped Internet Explorer 6–8 support and supports only IE 9 and later versions.
3 How to use in bxp
The first thing that you will have to do is import the jQuery library into the area of bxp that you wish to use jQuery.
var $JQ = jQuery.noConflict(); // This line is required to make jQuery Play nice with bxp