Welcome to WebmasterWorld Guest from 54.145.176.120

Forum Moderators: open

Message Too Old, No Replies

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

   
9:27 am on Jun 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
9:50 am on Jun 6, 2010 (gmt 0)

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member



(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
12:05 am on Jun 7, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Call json_encode on the html maybe.