Re: [jQuery] Q: best way to create dynamic content?

2007-02-28 Thread Francesco Sullo
I suggest to use jQuick. In your case you can create the code using: $('#myAnchor').append( $.DIV( id: myIdVar, 'class': myClassvar} ) jQuick is at http://jquick.sullof.com/ In the next days I will release a new powered version. nrwsteff ha scritto: short question: what is the

Re: [jQuery] Q: best way to create dynamic content?

2007-02-28 Thread Jörn Zaefferer
nrwsteff schrieb: so jörn, if you can release your plugin it would be perfect and i will give it a try. Here we go: http://bassistance.de/jquery-plugins/jquery-plugin-format/ You are basically the first user, so any feedback is highly appreciated! -- Jörn Zaefferer http://bassistance.de

[jQuery] Q: best way to create dynamic content?

2007-02-27 Thread nrwsteff
short question: what is the recommanded/better/fastest (memory footprint/execution time) jQuery way to create dynamic content? the length of code is not so important for me. or should i use one of the DOM creation plugins? a) var myIdVar = 'id1'; var myClassVar = 'class1';

Re: [jQuery] Q: best way to create dynamic content?

2007-02-27 Thread Jörn Zaefferer
nrwsteff schrieb: short question: what is the recommanded/better/fastest (memory footprint/execution time) jQuery way to create dynamic content? the length of code is not so important for me. or should i use one of the DOM creation plugins? a) var myIdVar = 'id1'; var myClassVar =

Re: [jQuery] Q: best way to create dynamic content?

2007-02-27 Thread Chris Domigan
You should check out jsonT (http://goessner.net/articles/jsont/) It lets you transform ordinary javascript objects in HTML painlessly. So you could do: #myAnchor.append( jsonT( { id:1, class:3 }, { self: div id='{id}' class='{class}'/div } ) ); It supports really complex

Re: [jQuery] Q: best way to create dynamic content?

2007-02-27 Thread nrwsteff
release your plugin it would be perfect and i will give it a try. regards, steff _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Domigan Sent: Tuesday, February 27, 2007 10:10 PM To: jQuery Discussion. Subject: Re: [jQuery] Q: best way to create dynamic content

Re: [jQuery] Q: best way to create dynamic content?

2007-02-27 Thread Danny Wachsstock
Using innerHTML (like $('div/div') is faster than DOM creation methods; see http://www.quirksmode.org/dom/innerhtml.html but for complicated trees it's harder to understand and debug. nrwsteff wrote: short question: what is the recommanded/better/fastest (memory footprint/execution time)