[jQuery] Re: Don't use onclick

2009-10-13 Thread RobG
On Oct 13, 1:34 pm, expresso dschin...@gmail.com wrote: I don't think it's too hyped.  Having calls to javascript in your elements defeats the purpose of unobtrusively maintaining and using libraries like jQuery. The mechanism frequently used to attach such listeners is to add a class, id,

[jQuery] Re: Don't use onclick

2009-10-13 Thread Jonathan Vanherpe (T T NV)
RobG wrote: On Oct 13, 1:34 pm, expressodschin...@gmail.com wrote: I don't think it's too hyped. Having calls to javascript in your elements defeats the purpose of unobtrusively maintaining and using libraries like jQuery. The mechanism frequently used to attach such listeners is to add a

[jQuery] Re: Don't use onclick

2009-10-13 Thread Liam Potter
Rob, keeping all JS outside of the HTML is a good practice, and keeps everything nice and easy to maintain. Jonathan Vanherpe (T T NV) wrote: RobG wrote: On Oct 13, 1:34 pm, expressodschin...@gmail.com wrote: I don't think it's too hyped. Having calls to javascript in your elements

[jQuery] Re: Don't use onclick

2009-10-12 Thread RobG
On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com wrote: Am I wrong to say you should never use onclick in an element as this would be contrary to the purpose of using jQuery I think you have your design priorites backward. Firstly determine the functionality required, then how to best

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
I don't think it's too hyped. Having calls to javascript in your elements defeats the purpose of unobtrusively maintaining and using libraries like jQuery. How can you stay that Rob?? On Oct 12, 9:39 pm, RobG robg...@gmail.com wrote: On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
unobtrusive in this case is keeping javascript out of elements. onclick= binds them together. On Oct 12, 9:39 pm, RobG robg...@gmail.com wrote: On Oct 13, 10:49 am, CoffeeAddict dschin...@gmail.com wrote: Am I wrong to say you should never use onclick in an element as this would be

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
I think you have your design priorites backward. Firstly determine the functionality required, then how to best implement it. If that means using a library obviously we're past that point. We've decided this was a good use for jQuery. So how can you say priorities are tangled here when you

[jQuery] Re: Don't use onclick

2009-10-12 Thread expresso
The simple fact that you don't have javascript floating all over your doc inside elements is alone a reason that unobtrusive rocks. Let alone many other reasons. On Oct 12, 10:44 pm, expresso dschin...@gmail.com wrote: I think you have your design priorites backward. Firstly determine the