[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-15 Thread T.J. Crowder
@RobG: > ...just for the record: the HTML class > attribute is not targeted at CSS, it is for any purpose you wish to > put it to (even none at all). Good point! @All: I went ahead and rewrote this as a tip on the unofficial wiki, but it could use another pair of eyes and I'm out of time this

[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-14 Thread RobG
On Oct 14, 5:07 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: [...] > One way to do this is to have the relevant fields tagged with a > specific CSS class. An excellent response overall, but just for the record: the HTML class attribute is not targeted at CSS, it is for any purpose you wish to

[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-14 Thread Walter Lee Davis
On Oct 14, 2008, at 3:07 AM, T.J. Crowder wrote: > So in that situation, we > don't want the HTML designers to have to do much to enable the > JavaScript, and we don't want the JavaScript coders to know that much > about the HTML. We want them both to have an agreed set of things > they each pro

[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-14 Thread T.J. Crowder
Hi Juan, Let's step back a moment and remember *why* we want to have minimally- intrusive JavaScript in our pages: Separation of concerns. In a decent-sized shop, the JavaScript coders are not the same people as the HTML designers. Each is a distinct skillset, and a shop that's big enough is s