homepage Welcome to WebmasterWorld Guest from 23.20.61.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4147646 posted 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

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



 
Msg#: 4147646 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4147646 posted 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