Site Home  »  Using jQuery

Using jQuery

Tags:  

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.


despens (Guest) 184 - days ago 
Are there any jQuery methods that would not work inside of Crossrider. I seem to have problems with fadeIn() for example.
Despens, Please see answer in our Q&A Community: http://getsatisfaction.com/crossrider/topics/some_jquery_methods_not_working
Post a comment

Your Name or E-mail ID (mandatory)






 RSS of this page

Written by:   Version:   Last Edited By:   Modified