[jQuery] Re: Fastest way to clear child elements from a div

2009-01-01 Thread Ricardo Tomasi
No it doesn't. There are other concerns other than speed of execution. I don't remember exactly, but with some of the replaceHTML implementations you lose all bound events and properties when moving an element, for example. On Dec 31 2008, 2:58 am, Kean wrote: > If I read the jQuery source code

[jQuery] Re: Fastest way to clear child elements from a div

2008-12-30 Thread Kean
If I read the jQuery source code right, it seems that .html() does not use this replaceHTML method even in 1.3b1 On Dec 30, 8:21 pm, Ricardo Tomasi wrote: > There is a long discussion about better 'innerHTML' methods, see here > (check the comments also): > > http://blog.stevenlevithan.com/arch

[jQuery] Re: Fastest way to clear child elements from a div

2008-12-30 Thread Ricardo Tomasi
There is a long discussion about better 'innerHTML' methods, see here (check the comments also): http://blog.stevenlevithan.com/archives/faster-than-innerhtml http://ajaxian.com/archives/replacehtml-for-when-innerhtml-dogs-you-down On Dec 30, 7:00 pm, Adam Guichard wrote: > It ran in 5ms, but i

[jQuery] Re: Fastest way to clear child elements from a div

2008-12-30 Thread Kean
Oops I mean event. On Dec 30, 8:11 pm, Kean wrote: > Sounds like your nodes have to much element binded to them. > > On Dec 30, 1:00 pm, Adam Guichard wrote: > > > It ran in 5ms, but its my understanding if I use the method your > > suggesting I'll be leaking memory.  If I just set the innerhtm

[jQuery] Re: Fastest way to clear child elements from a div

2008-12-30 Thread Kean
Sounds like your nodes have to much element binded to them. On Dec 30, 1:00 pm, Adam Guichard wrote: > It ran in 5ms, but its my understanding if I use the method your > suggesting I'll be leaking memory.  If I just set the innerhtml = "", > I think the dom element's children aren't disposed.  

[jQuery] Re: Fastest way to clear child elements from a div

2008-12-30 Thread Adam Guichard
It ran in 5ms, but its my understanding if I use the method your suggesting I'll be leaking memory. If I just set the innerhtml = "", I think the dom element's children aren't disposed. They just sit around chewing up memory, so I don't think I can use the method your suggesting. On Dec 30, 2:4

[jQuery] Re: Fastest way to clear child elements from a div

2008-12-30 Thread MorningZ
just for laughs...see of document.getElementById("ID of Div Tag").innerHTML = ""; is anything of an improvement On Dec 30, 3:02 pm, Adam Guichard wrote: > I'm using jTemplates to create a client grid, but I'm having trouble > with load times.  When I'm paging through the grid jTemplates is