[jquery-dev] Re: Proposal: Attributed events

2009-02-01 Thread treshug...@gmail.com
I also want to say, sorry for the poor documentation. It is a site that I have recently started messing around with and will hopefully get around to finishing sometime. In the meantime, if there are any questions, please feel free to contact me. --~--~-~--~~~---~--~---

[jquery-dev] Re: Proposal: Attributed events

2009-01-31 Thread treshug...@gmail.com
I agree with Flesler. jQuery is designed to abstract things such as this. I actually do have a plugin that allows a syntax easier than this. It's name is Keys and you can find it on the jQuery plugin site or at http://shugartweb.com/jquery/keys. It allows syntax such as $('input').keys('tab, spa

[jquery-dev] Re: Proposal: Attributed events

2009-01-31 Thread Ariel Flesler
The idea is nice, but I think is quite out of the core's scope. There're already +1 hotkey plugins and they work nicely. This syntax could be proposed to these plugins' owners. -- Ariel Flesler http://flesler.blogspot.com On 30 ene, 03:24, Yehuda Katz wrote: > I brought this up a while back an

[jquery-dev] Re: Proposal: Attributed events

2009-01-30 Thread Yehuda Katz
The idea is for this to work for any event property. I can think of a few examples where it could be useful in custom attributes, and obviously in key and mouse events. -- Yehuda On Fri, Jan 30, 2009 at 8:55 AM, Matt wrote: > > On Jan 29, 8:24 pm, Yehuda Katz wrote: > > $("p").bind("keydown[key

[jquery-dev] Re: Proposal: Attributed events

2009-01-30 Thread Matt
On Jan 29, 8:24 pm, Yehuda Katz wrote: > $("p").bind("keydown[keyCode=119]", function() {}) Could you also just redefine 'keydown' as a plugin? $('p').keydown( 119, function(){} ); or $('p').keydown( [119,120,121], function(){} ); or $('p').keydown( 'enter', function(){} ); etc. Matt Kruse --

[jquery-dev] Re: Proposal: Attributed events

2009-01-30 Thread Scott González
I looked at AOL's AXS library very briefly a while ago and it does something similar to this. Might be worth glancing over for ideas: http://dev.aol.com/axs (specifically axs.keyreg). On Jan 29, 9:24 pm, Yehuda Katz wrote: > I brought this up a while back and I think it was well-received. I'd

[jquery-dev] Re: Proposal: Attributed events

2009-01-30 Thread James Hughes
piano Sent: Fri 30/01/2009 09:59 To: jQuery Development Subject: [jquery-dev] Re: Proposal: Attributed events maybe a few jquery event shortuts to specific keycodes/ranges of keycodes, which would provide a meaningful semantic layer, as opposed to further entrenching the spread of ranges of val

[jquery-dev] Re: Proposal: Attributed events

2009-01-30 Thread ajpiano
maybe a few jquery event shortuts to specific keycodes/ranges of keycodes, which would provide a meaningful semantic layer, as opposed to further entrenching the spread of ranges of valid numeric keycodes into our jquery events $(...).bind("keydown[enter] keydown[numeric]",fn) or maybe even simp

[jquery-dev] Re: Proposal: Attributed events

2009-01-29 Thread Dave Methvin
Sounds kind of nice to me. Do you have some other examples? I wonder how it would be expected to interact with other features: $("p").bind("click.myplug keydown[keyCode=119].myplug", function ... --~--~-~--~~~---~--~~ You received this message because you are sub