Code: HTML2JS

November 14, 2008

At university I am studying computer science, so I am afraid there are also going to be code posts on here! The first bit of code I am going to share is a tool I used in my last project. My task was to create a form which was mainly powered by Javascript, it had all those snazzy affects you dream of, Ajax requests, inplace editing, drag and drop, you get the idea.

Anyway, to achieve a lot of this I used the Prototype library and had the Javascript generate the dynamic HTML. If you have ever done this you will know of the repetitive nature of converting HTML to Javascript, but no fear, here is a tool to do all that for you!