This page is a first draft, which will be revised and improved. Please leave us a note on the community page regarding any issue.
Built-In jQuery Support
Crossrider apps comes with a built-in support for the jQuery JS framework.
jQuery will help you to easily write cross-browser code for your apps, and even better, use the jQuery plugin eco-system inside extensions.
To access the jquery from your app code, simply use: $jquery.
We are using this naming, to avoid conflicts with other variables on the page.
If you wish to use $ instead, make sure to define it as a var within the ready clause, as follows:
$jquery(document).ready(function() {
var $ = $jquery;
});
Make sure you include the
var
before the statement to avoid collision with existing
$ variable declaration on the page itself.
jQuery Version
We are currently supporting jQuery version 1.4.2.In the future we will support other jQuery versions, and other JS libraries such as mootools.
Please drop us a note in our
Developers Community if you feel you need more support other than this.