Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

"out" is similar to "html" object but it will not return the result but it just print them out

Functions

[void] print([string] s); // print s
[void] println([string] s); // print s and go to next line
[void] println(); // go to next line
[void] p([string] p); // print an html paragraph element(<p>)  
[void] element([string] tag); // print an empty tag
[void] element([string] tag, [string] innerHtml); //print the element tag with inner Html
[void] a([string] linkUrl); // print an <a>
[void] a([string] linkUrl, [string] title); // print an <a> with title
[void] a([string] linkUrl, [string] title, [boolean] target); // print a link that if target==true will open in new window
[void] table([StringArray] headers[],[String2dArray] rows[][]) // print a table

Examples

var table=html.table(["first","second"],
						[["a","b"],["c","d"]]);
print(table);

variable "table" contains:

"<table><thead><tr><th>first</th><th>second</th></tr></thead><tbody><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></tbody></table>"

output after printing the variable "table"

firstsecond
ab
cd
  • No labels