PEAR logo

HTML_QuickForm_advmultiselect : The Definitive Guide



Name

HTML_QuickForm_advmultiselect::getElementJs - Returns the javascript code generated to handle this element

Synopsis

      require_once 'HTML/QuickForm/advmultiselect.php';
     
string HTML_QuickForm_advmultiselect::getElementJs( $raw = TRUE);
boolean $raw = TRUE;

Description

The basic (and default) settings can be applied with just the placeholder {javascript} into your template element. If you does not have existing script tags in your html page, you must call the method with FALSE argument. Default behaviour returns only the raw js data without script tags. Useful when using with template engine.

Parameter

boolean $raw

(optional) html output with script tags or just raw data

Throws

throws no exceptions thrown

Note

since 0.4.0

This function can not be called statically.

See

HTML_QuickForm_advmultiselect::setJsElement

HTML_QuickForm_advmultiselect : The Definitive Guide v 1.4.0 : 9 Juin 2007