Skip to content

Quickly include jQuery on Visualforce pages with this managed package.

Notifications You must be signed in to change notification settings

bluewolf-beyond/jquery-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery package

quickly include jQuery on Visualforce pages.

  • quick start
  • documentation
  • more info

quick start

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 />

documentation

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 variable
  • min: whether to include the minified source files
  • onReady: JavaScript code to execute when the DOM is loaded
  • theme: 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

more info

About

Quickly include jQuery on Visualforce pages with this managed package.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages