| How do I convert HTML to Javascript on the fly using PHP function?
|
irock

msg:4147648 | 9:27 am on Jun 6, 2010 (gmt 0) | Hi, I was wondering if there's a PHP function out there that allows me to convert HTML to Javascript on the fly? I notice there are some converters but they are all Javascript-based. I need PHP-based HTML-to-Javascript converter. Any help is greatly appreciated.
|
JAB Creations

msg:4147655 | 9:50 am on Jun 6, 2010 (gmt 0) | (X)HTML = noun. JavaScript = verb. You can't convert either one either way. Regardless of whatever it is that you're trying to achieve I think you should seriously first reconsider what you know about each language first. - John
|
daveVk

msg:4147883 | 12:05 am on Jun 7, 2010 (gmt 0) | Call json_encode on the html maybe.
|
|
|