Jquery

Utility class for jQuery JavaScript behaviors

abstract
since

3.0

package

Joomla CMS

Methods

framework

Method to load the jQuery JavaScript framework into the document head

framework( noConflict = true,  debug = null,  migrate = false) : 
static deprecated

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

since

3.0

deprecated

4.0 will be removed in 6.0 Use webasset manager instead Example: $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); $wa->useScript('jquery'); $wa->useScript('jquery-noconflict'); $wa->useScript('jquery-migrate');

Arguments

noConflict

boolTrue to load jQuery in noConflict mode [optional]

debug

mixedIs debugging mode on? [optional]

migrate

boolTrue to enable the jQuery Migrate plugin

Response

void

token

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

token( name = 'csrf.token') : 
static
throws

InvalidArgumentException

since

3.8.0

Arguments

name

stringThe CSRF meta tag name.

Response

void

Properties

loaded

Array containing information for loaded files

static
since

3.0

Type(s)

array<string|int, mixed>