I posted a comparison of the code hassle necessary to add a simple link to a JavaScript function in an unobtrusive way:
http://redotheweb.com/?p=5
My conclusion is that writing unobtrusive JavaScript by hand is not acceptable, the resulting code is just too much.
But, by using both a JavaScript framework (jQuery) and a web application framework (symfony), I managed to reduce the necessary code to about the same amount that would be required to do it in an obtrusive way.
What do you think about the idea, and more generally how do you manage unobtrusive Javascript in complex pages?






Oh well.

Bookmarks