quickly include jQuery on Visualforce pages.
- quick start
- documentation
- more info
install the managed package by following these links:
add one of the components to your pages and you're off.
<jQuery:Core />
<jQuery:UI />
<jQuery:Mobile />
loads the latest versions of jQuery (currently 1.9.1),
jQuery UI (currently 1.10.3) and/or jQuery Mobile
(currently 1.3.0), then automatically calls
jQuery.noConflict()
to avoid collision with the other
libraries loaded by Salesforce, so use jQuery
and not $
,
or wrap your code in a closure.
<apex:page>
<jQuery:UI theme="le-frog" min="false" onReady="init();" />
<script>
function init() {
// doSomeStuff
}
</script>
</apex:page>
attributes:
alias
: alias to use for global jQuery variablemin
: whether to include the minified source filesonReady
: JavaScript code to execute when the DOM is loadedtheme
: the theme to include (only for UI: see Themeroller)- black-tie
- blitzer
- cupertino
- dark-hive
- dot-luv
- eggplant
- excite-bike
- flick
- hot-sneaks
- humanity
- le-frog
- mint-choc
- overcast
- pepper-grinder
- redmond
- smoothness
- south-street
- start
- sunny
- swanky-purse
- trontastic
- ui-darkness
- ui-lightness
- vader