[Prototype-core] Form.serialize performance improvement

2008-02-24 Thread benben
When using Form.serialize on forms containing a LOT of elements (input, select, etc..) the serialization speed on IE 6 is awful due to the use of Element.extend. Even if the elements have no name attribute the serialization is really slow. By using a specialised version of serialize which do not

[Prototype-core] Re: Simple event delegation

2008-02-24 Thread Diego Perini
@kangax, have a look here: http://javascript.nwbox.com/NWEvents/delegates.html "focus/blur" events are simulated cross-browser but transparently to the event setup by the programmer. Of great note is that in the example no "onload/DOMReady" event is used to bootstrap the functionality of the

[Prototype-core] DOMContentLoaded for IE

2008-02-24 Thread Diego Perini
Don't know if you already tried the doScroll("left") trick, many frameworks already implemented it, YUI and jQuery to name some, but Mootools have it in SVN and tools like sIFR already uses it. I proposed this to solve the fact that IE is missing such useful native method. I know many methods exi

[Prototype-core] Re: DOMContentLoaded for IE

2008-02-24 Thread Tobie Langel
Hi, I'm all for it myself. I even had implemented it for 1.6.0.2 and had to revert because it was making our tests fail. The problem is that the doScroll technique can trigger the dom:loaded event *after* window.onload, notably on short pages. Delegating to window.onload in that case doesn't wo