Joomla! 1.5 API

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2011 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

 Class JHTMLBehavior

Description

Utility class for javascript behaviors

  • version: 1.5

Located in /joomla/html/html/behavior.php (line 23)

Class JHTMLBehavior   (Subpackage HTML)
Method Summary
Static method static void mootools ([boolean $debug = null])
Method void calendar ()
Method void caption ()
Method void combobox ()
Method void formvalidation ()
Method void keepalive ()
Method void modal ([ $selector = 'a.modal'], [ $params = array()])
Method void switcher ()
Method void tooltip ([ $selector = '.hasTip'], [ $params = array()])
Method void tree ( $id, [ $params = array()], [ $root = array()])
Method void uploader ([ $id = 'file-upload'], [ $params = array()])
Method string _getJSObject ([array $array = array()])
Methods
calendar (line 283)
void calendar ()
caption (line 62)
void caption ()
combobox (line 74)
void combobox ()
formvalidation (line 66)
void formvalidation ()
keepalive (line 299)

Keep session alive, for example, while editing or creating an article.

void keepalive ()
modal (line 117)
void modal ([ $selector = 'a.modal'], [ $params = array()])
  • $selector
  • $params
mootools (line 35)

Method to load the mootools framework into the document head

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

  • since: 1.5
void mootools ([boolean $debug = null])
  • boolean $debug: Is debugging mode on? [optional]
switcher (line 70)
void switcher ()
tooltip (line 78)
void tooltip ([ $selector = '.hasTip'], [ $params = array()])
  • $selector
  • $params
tree (line 229)
void tree ( $id, [ $params = array()], [ $root = array()])
  • $id
  • $params
  • $root
uploader (line 175)
void uploader ([ $id = 'file-upload'], [ $params = array()])
  • $id
  • $params
_calendartranslation (line 363)

Internal method to translate the JavaScript Calendar

  • return: JavaScript that translates the object
  • since: 1.5
string _calendartranslation ()
_getJSObject (line 330)

Internal method to get a JavaScript object notation string from an array

  • return: JavaScript object notation representation of the array
  • since: 1.5
string _getJSObject ([array $array = array()])
  • array $array: The array to convert to JavaScript object notation
Support Joomla!