need help with ugly code

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

need help with ugly code

Will
Can you take a look at my resume.js and see how to avoid using the javascript to dynamically generate html code? I have to do those because for things like taking an input, they need to be in every subsection, and I don't know how many subsections are there, so cannot hardcode all the html, seems that using document.createElement etc is the only way, ugly way though...
Reply | Threaded
Open this post in threaded view
|

Re: need help with ugly code

fschmidt
Administrator
I fixed generateInputDiv() in /fschmidt/resume.js .
Reply | Threaded
Open this post in threaded view
|

Re: need help with ugly code

Will
wow! That's many times better. Why I have never seen the dynamic html done this way? so much nicer!