[jQuery] Re: how to avoid overhead

2008-12-02 Thread Dirceu Barquette
Thank you!! I will try your code soon. But the solution makes sense. I can't test in IE, cause I'm a linux user and need install VMware or something like this. I will feedback to you. Dirceu Barquette 2008/12/2 Michael Geary <[EMAIL PROTECTED]> > > You're right to question the requirement to ad

[jQuery] Re: how to avoid overhead

2008-12-02 Thread ricardobeat
You're not going to get good enough performance from handling thousands of elements. I tried that myself last year: http://ff6600.org/desenhador/ff66.htm It used to run ok in FF2, but somethign in FF3 makes it really slow. If you draw with the middle-mouse button performance is better (I didn't

[jQuery] Re: how to avoid overhead

2008-12-02 Thread Michael Geary
You're right to question the requirement to add that many divs. But assuming it's necessary, that code is not the fastest way to do it. This would be faster, especially in IE: var n = 1600; var html = new Array( n + 2 ); html[0] = ''; for( var i = 1; i <= n; ++i ) html[i

[jQuery] Re: how to avoid overhead

2008-12-02 Thread Dirceu Barquette
Thank you!! please! see the example at isabeladraw.sourceforge.net. I've been forced build blocks against the entire board. But I'm thinking create child-by-child onmouseover position. sorry my english... Dirceu Barquette 2008/12/2 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > I would start by evalu

[jQuery] Re: how to avoid overhead

2008-12-02 Thread [EMAIL PROTECTED]
I would start by evaluating the requirement for adding 1599 divs. The way you have written it is probably the most efficent cross browser way of appending that much content but it will still crawl. On Dec 2, 10:53 am, "Dirceu Barquette" <[EMAIL PROTECTED]> wrote: > Hi! > > The code: > for (i = 0;