Comments
Article Comments (4 total)
John Lee, 23 January 2009
Hey, just wanted to say that this series is wonderful... I'm new to Prototype and had a great time reading and understanding your tutorial. Thanks and keep up the great work.
romu31, 27 May 2008
awesome tutoriel .
I readed only the 4th lesson .Just a point ( may be u have mentioned it) : the script in the page , in weeks 4 , could mention the onload via "Event.observe(window, 'load', function() { romuLoad() });".
anyway , it's the best tuto i read on prototype so far .
good work
Pablo Impallari, 24 May 2008
Instead of using: Event.observe(window, 'load', function() { ... your code ... }); You should use: document.observe("dom:loaded", function() { ... your code ... });
Response from PhpRiot:
Thanks Pablo. I did in fact discover this after publishing the first 5 articles (it's not actually clearly documented, just buried in the code). For the sake of consistency I continued to use the window load event but may update all the articles in the future accordingly.
patrov Dimitri, 12 May 2008
What about event-handling on an ajax page?


