I think we are agree

>
> Just to clarify, I am not saying "never dynamically add event
> listeners", I'm just saying to keep an open mind and consider adding
> them at the server in some cases instead of at the client.
>

I agree with you

>
> And by
> "add them at the server" I am not saying the HTML author needs to add
> them, but that they can be added by the server using the same logic
> that you are currently employing on the client.
>

Well in project where our software is used it is not so simple:

1. Someone makes a beautifull non web graphical chart in photoshop
(let's say displaying a table)
2. A big corporation decide to use our CMS
3. Then an other one decide to use a plugin, or featue that sort all
tables in front office.

At the end a third company will try to mix all 3 points. And in worst
case they will cut and past some part of the html code, throw images
in a directory and that's it ... the result must be clean, fast, ...

I agree that in a perfect world people must be skilled. But in fact
they write something horrible like
<table onclick="say("hello john")" ... >

In fact, I agree working on server side is possible, but I like the
separation of CSS, HTML (semantic) and JS.

--
Jean-Philippe Encausse - Veille / R&D Jalios SA
Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com
GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net
Mob: +33 6 82 12 56 99 - Job: +33 1 39 23 92 83 - Tel: +33 1 39 18 90 15
Do it Once, Use it Twice ~ Do it Twice, Make It Once

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to