Page 1 of 1

Embedding HTML code in JavaScript

Posted: Mon Jun 17, 2013 10:52 pm
by Rommel Paras

I have this custom JavaScript markup which stores html code in a variable, e.g.
var markup = 'Hello World!';

The markup code will be longer than that (like an actual page). I know a panel can store html code but if I want to access the HTML code and store it in a JS variable, how do I do it - a panel, a javascript file, any other option?


Embedding HTML code in JavaScript

Posted: Mon Jun 17, 2013 11:12 pm
by maxkatz

I'm not sure I understand this:
[quote:]
The markup code will be longer than that (like an actual page).
[/quote]


Embedding HTML code in JavaScript

Posted: Mon Jun 24, 2013 6:22 pm
by Rommel Paras

Embedding HTML code in JavaScript

Posted: Mon Jun 24, 2013 6:26 pm
by maxkatz