A feature which motivated this whole effort was dealing with scripts. I used to output a page and only down there see that I actually need a script to be executed onLoad of the page...
With CSE Display, you can register javascript functions and register functions to be launched onLoad. No magic here, just as usual replacing by the strings given the special regions * {JS} * and * {ONLOAD} *.
In this page, for instance, the following commands have been used:
<?php
$myHTML->registerJSfunction("myFunc(myVar)", "alert('Javascript with value:'+myVar);");
$myHTML->registerJSonLoad("myFunc(\"OnLoad\");");
?>
You should have been welcomed with an alert, and will get an alert if you click on a button above...
It is also possible to pass reference to external javascript files with the function addExternalJS($f_name)
.