To be fair to the Rails people, there is a plugin called UJS for Rails
that promotes the use of Unobtrusive Javascript in Rails web
applications.

http://www.ujs4rails.com/


With that said, I'm not really a big fan of the "helpers" that Rails
provides for generating obtrusive Javascript in your pages.  I'm glad
that UJS for Rails exists so that Rails programmers can more easily
separate their Javascript from their HTML.

PS: Sorry about the nightmares.  ;-)

On 1/25/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> John Beppu wrote:
> > I'd like to also add that Unobtrusive Javascript is just cleaner and
> > easier to understand than the alternative.
>
> And here's another aspect I'd like to add: To me UOJS not also means
> graceful degradation plus separation of JS and HTML, it also means to
> not add elements to your HTML that have solely the purpose of satisfying
>   some scripting needs, like extra ids, elements and so on (hey Jake,
> you should like that :-) ).
>
> I think jQuery makes UOJS possible like no other library. Prototype with
> Rails for example gives you the hell of obtrusive JavaScript (they don't
> care because of all the helpers you still don't have the maintenance
> nightmare). So if you're using Prototype elsewhere you might tend to
> stick to these habits...
>
> Rey, I think this is an important point to emphasize if not happened yet.
>
>
> -- Klaus
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to