CI_Javascript =============== Javascript Class * Class name: CI_Javascript * Namespace: * **Warning:** this class is **deprecated**. This means that this class will likely be removed in a future version. Properties ---------- ### $_javascript_location protected string $_javascript_location = 'js' JavaScript location * Visibility: **protected** * **Warning:** this property is **deprecated**. This means that this property will likely be removed in a future version. Methods ------- ### __construct void CI_Javascript::__construct(array $params) Constructor * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $params **array** ### blur string CI_Javascript::blur($element, $js) Blur Outputs a javascript library blur event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### change string CI_Javascript::change($element, $js) Change Outputs a javascript library change event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### click string CI_Javascript::click($element, $js, $ret_false) Click Outputs a javascript library click event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** * $ret_false **mixed** ### dblclick string CI_Javascript::dblclick($element, $js) Double Click Outputs a javascript library dblclick event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### error string CI_Javascript::error($element, $js) Error Outputs a javascript library error event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### focus string CI_Javascript::focus($element, $js) Focus Outputs a javascript library focus event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### hover string CI_Javascript::hover($element, $over, $out) Hover Outputs a javascript library hover event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $over **mixed** * $out **mixed** ### keydown string CI_Javascript::keydown($element, $js) Keydown Outputs a javascript library keydown event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### keyup string CI_Javascript::keyup($element, $js) Keyup Outputs a javascript library keydown event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### load string CI_Javascript::load($element, $js) Load Outputs a javascript library load event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### mousedown string CI_Javascript::mousedown($element, $js) Mousedown Outputs a javascript library mousedown event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### mouseout string CI_Javascript::mouseout($element, $js) Mouse Out Outputs a javascript library mouseout event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### mouseover string CI_Javascript::mouseover($element, $js) Mouse Over Outputs a javascript library mouseover event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### mouseup string CI_Javascript::mouseup($element, $js) Mouseup Outputs a javascript library mouseup event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### output string CI_Javascript::output($js) Output Outputs the called javascript to the screen * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $js **mixed** ### ready string CI_Javascript::ready(string $js) Ready Outputs a javascript library mouseup event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $js **string** - <p>Code to execute</p> ### resize string CI_Javascript::resize($element, $js) Resize Outputs a javascript library resize event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### scroll string CI_Javascript::scroll($element, $js) Scroll Outputs a javascript library scroll event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### unload string CI_Javascript::unload($element, $js) Unload Outputs a javascript library unload event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $js **mixed** ### addClass string CI_Javascript::addClass($element, $class) Add Class Outputs a javascript library addClass event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $class **mixed** ### animate string CI_Javascript::animate(string $element, array $params, mixed $speed, string $extra) Animate Outputs a javascript library animate event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **string** - <p>= 'this'</p> * $params **array** - <p>= array()</p> * $speed **mixed** - <p>'slow', 'normal', 'fast', or time in milliseconds</p> * $extra **string** ### fadeIn string CI_Javascript::fadeIn($element, $speed, $callback) Fade In Outputs a javascript library hide event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### fadeOut string CI_Javascript::fadeOut($element, $speed, $callback) Fade Out Outputs a javascript library hide event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### slideUp string CI_Javascript::slideUp($element, $speed, $callback) Slide Up Outputs a javascript library slideUp event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### removeClass string CI_Javascript::removeClass($element, $class) Remove Class Outputs a javascript library removeClass event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $class **mixed** ### slideDown string CI_Javascript::slideDown($element, $speed, $callback) Slide Down Outputs a javascript library slideDown event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### slideToggle string CI_Javascript::slideToggle($element, $speed, $callback) Slide Toggle Outputs a javascript library slideToggle event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### hide string CI_Javascript::hide($element, $speed, $callback) Hide Outputs a javascript library hide action * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### toggle string CI_Javascript::toggle($element) Toggle Outputs a javascript library toggle event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** ### toggleClass string CI_Javascript::toggleClass(string $element, string $class) Toggle Class Outputs a javascript library toggle class event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **string** - <p>= 'this'</p> * $class **string** - <p>= ''</p> ### show string CI_Javascript::show($element, $speed, $callback) Show Outputs a javascript library show event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### compile string CI_Javascript::compile(string $view_var, boolean $script_tags) Compile gather together all script needing to be output * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $view_var **string** * $script_tags **boolean** ### clear_compile void CI_Javascript::clear_compile() Clear Compile Clears any previous javascript collected for output * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. ### external string CI_Javascript::external(string $external_file, boolean $relative) External Outputs a * Visibility: **protected** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $extra **mixed** ### update string CI_Javascript::update($element, $speed, $callback) Update Outputs a javascript library slideDown event * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $element **mixed** * $speed **mixed** * $callback **mixed** ### generate_json string CI_Javascript::generate_json($result, $match_array_type) Generate JSON Can be passed a database result or associative array and returns a JSON formatted string * Visibility: **public** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $result **mixed** * $match_array_type **mixed** ### _is_associative_array boolean CI_Javascript::_is_associative_array($arr) Is associative array Checks for an associative array * Visibility: **protected** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $arr **mixed** ### _prep_args string CI_Javascript::_prep_args(mixed $result, boolean $is_key) Prep Args Ensures a standard json value and escapes values * Visibility: **protected** * **Warning:** this method is **deprecated**. This means that this method will likely be removed in a future version. #### Arguments * $result **mixed** * $is_key **boolean** - <p>= FALSE</p>