2009/5/26 Martijn Faassen <[email protected]>: > <div class="my_data" style="display:none">{my_data}</div> > > and then some javascript code to scrape that out of the document again
Sorry in advance for not reading your post in sufficient detail… It’s best to avoid tangling with the DOM wherever possible because it will likely slow things down considerably. Prepare the HTML you wish to insert first and slap it in once when it is finished. Some relevant references: http://developer.yahoo.com/performance/rules.html#dom_access http://jquery-howto.blogspot.com/2009/02/5-easy-tips-on-how-to-improve-code.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JSON Template" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/json-template?hl=en -~----------~----~----~----~------~----~------~--~---
