call a function on the server, where
call an object on the server, where:
call an object on the server and return the output as CSV.
Note: There will be no callback. The output must be a list-in-a-list
Add a listener to the given event. Example:
addEvent('click', function(e, target) { .. });
Python-like string replacement. Example:
s = repl("Hello %(name)s, welcome to %(location)s", {name:'ABC', location:'Mumbai'});
Python-like string replacement. Example:
s = repl("Hello %(name)s, welcome to %(location)s", {name:'ABC', location:'Mumbai'});
Convert number to string with commas for thousands, millions etc and 2 decimals. Example:
fmt_money(2324); // equals '2,324.00'
Add element to the given parent. Example:
div = $a(body, 'div', '', {padding: '2px'});
Add and INPUT element to the given parent, with given attributes (Fix for IE6 since it does not accept type). Example:
chk = $a_input(body, 'checkbox', null, {border: '0px'});
Set Element style. Example:
$y(div,{height:'4px'});
Declare css classes in txt. Example:
set_style('div.myclass { width: 400px }');
Set the opacity property of the element opacity between 0 and 100
Same As: $op(e,w)
Make a new table in parent with
Example:
var t = make_table(div, 5, 2, '400px', ['100px', '300px'], {padding: '2px'})
Set style on tables with wildcards, Examples:
// hilight row 3
$yt(t, 3, '*', {backgroundColor:'#EEE'})
// border to all cells
$yt(t, '*', '*', {border:'1px solid #000'})
Add the value to the Element ele based on fieldtype and fieldoptions