HTML_Javascript
| From: | Tal Peer | Date: | Fri, 07 Jun 2002 12:39:19 +0000 |
| Subject: | HTML_Javascript | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6782@lists.php.net to get a copy of this message | ||
Hello,
The HTML_Javascript class contains methods for converting php variables into javascript variables.
it is actually intended for writing a whole script (currently only inside a html document, though i
will add an optional argument to the constructor f or writing scripts in individual files) it
supports converting for every type of variable: arrays, strings, integers, floats, booleans and null
(if you pass an object, it will show the string representation of it).
It also contains wrapper methods for some simple JS operations (write, writeLine and alert, more
cming soon).
The code is in CVS.
Comments are always welcome.
Regards,
Tal