This isn't jquery-specific, but I've been using this for a couple years now to generate html from json data:
http://code.google.com/p/trimpath/wiki/JavaScriptTemplates works great. - Jack SeeVik wrote:
Hello all, I am using Symfony with jQuery plugin. The thing is I am getting some data from database in JSON format and I want to use jQuery to display a table using that data on the fly. I was wondering is jQuery the best way to do this? Or will it be an overkill? Should I use simple DOM methods for this task like... divResult = document.getElementById("divName"); table = document.createElement("table"); tr = document.createElement("tr"); td = document.createElement("td"); tr.appendChild(tr); table.appendChild(tr); divResult.appendChild(table); If I should use jQuery, can somebody give me a hint which methods to use for the above jQuery code? Thanks and Regards Vikram