By joezimjs
via joezimjs.com
Submitted: Feb 09 2012 / 13:48
If you’ve been using JavaScript for any semi-substantial amount of time, you’ve probably had to add some HTML to your page dynamically. If you’re haven’t then you’re missing out on some of the greatest power of JavaScript. There’s a problem though: It’s a pain in the buttocks to write HTML code inside a JavaScript string – especially when it’s a large amount of HTML and/or some of the tags have attributes – and adding in values from variables. It’s just a giant mess of quotes and plus signs.
Tweet
SaveShareSend
Tags: ajax, javascript, methodology, standards



Add your comment