Welcome to WebmasterWorld Guest from 54.167.65.217

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 2, 2002
posts: 1099
votes: 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.
9:50 am on June 6, 2010 (gmt 0)

Senior Member from US 

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

joined:Aug 26, 2004
posts:3145
votes: 12


(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 June 7, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 3, 2005
posts:1585
votes: 0


Call json_encode on the html maybe.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members