class JHtmlJquery

Utility class for jQuery JavaScript behaviors

Methods

static  void
framework( boolean $noConflict = true, mixed $debug = null, boolean $migrate = true)

Method to load the jQuery JavaScript framework into the document head

static  void
ui( array $components = array('core'), mixed $debug = null)

Method to load the jQuery UI JavaScript framework into the document head

static  void
token( string $name = 'csrf.token')

Auto set CSRF token to ajaxSetup so all jQuery ajax call will contains CSRF token.

Details

static void framework( boolean $noConflict = true, mixed $debug = null, boolean $migrate = true)

Method to load the jQuery JavaScript framework into the document head

If debugging mode is on an uncompressed version of jQuery is included for easier debugging.

Parameters

boolean $noConflict True to load jQuery in noConflict mode [optional]
mixed $debug Is debugging mode on? [optional]
boolean $migrate True to enable the jQuery Migrate plugin

Return Value

void

static void ui( array $components = array('core'), mixed $debug = null)

Method to load the jQuery UI JavaScript framework into the document head

If debugging mode is on an uncompressed version of jQuery UI is included for easier debugging.

Parameters

array $components The jQuery UI components to load [optional]
mixed $debug Is debugging mode on? [optional]

Return Value

void

static void token( string $name = 'csrf.token')

Auto set CSRF token to ajaxSetup so all jQuery ajax call will contains CSRF token.

Parameters

string $name The CSRF meta tag name.

Return Value

void

Exceptions

InvalidArgumentException