An interesting article that introduces a useful function called graft().  graft() takes a JSON string defining a serious of DOM elements and returns a DOM fragment that can be inserted into the document element.  Now I haven’t tried the code in this article yet and some of the comments indicate that there maybe some truncation so be forewarned.

Making Javascript DOM a Piece of Cake with the graft() Function

Advertisements