homepage Welcome to WebmasterWorld Guest from 54.205.144.54
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved