Timeline for Generating HTML code dynamically with jQuery
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2016 at 0:35 | vote | accept | Sarah | ||
| May 11, 2016 at 14:30 | comment | added | Sarah | I see what you mean. it is probably better to do that. I will try that. thanks | |
| May 11, 2016 at 14:17 | comment | added | Mattias Åslund | The problem with writing the html directly in a variable is when you want to make changes it gets really hard to get an overview. Is it not possible to write the page template in a file and load the entire file into a variable instead? Then you can use any editor to redesign your page. | |
| May 11, 2016 at 14:14 | comment | added | Sarah | Thanks. But I am actually generating full pages dynamically. and the html i posted above will be part of these dynamic pages. I have the "page template" stored in a variable too. maybe i should put the <span> html inside that (as you said in an invisible div) instead of having two separate variables. thanks | |
| May 11, 2016 at 14:00 | history | answered | Mattias Åslund | CC BY-SA 3.0 |