Hi,
 
Is there a plugin kicking around anywhere that would let me declare events on 
object in a more declarative manner eg instead of
 
$('#button1').click(function(){..}).blur(function(){...})
$('#button2').click(function(){..})
etc etc
$('#button3').click(function(){..})
 
Doing it this way
 
$.register(
    '#button1:click' : function(){...},
    '#button1:blur : function(){...},
    '#button2:click' : function(){...}
    '#button3:click' : function(){...}
)
 
or
 
$.register(
    '#button1' :{
        click:function(){...}
        blur:function(){...}
    } 
    '#button2:click' : function(){...}
    '#button3:click' : function(){...}
)
 
Anyone know of something like this?
 
James

--------------------------------------------------------------------
This e-mail is intended solely for the addressee and is strictly confidential; 
if you are not the addressee please destroy the message and all copies. Any 
opinion or information contained in this email or its attachments that does not 
relate to the business of Kainos 
is personal to the sender and is not given by or endorsed by Kainos. Kainos is 
the trading name of Kainos Software Limited, registered in Northern Ireland 
under company number: NI19370, having its registered offices at: Kainos House, 
4-6 Upper Crescent, Belfast, BT7 1NT, 
Northern Ireland. Registered in the UK for VAT under number: 454598802 and 
registered in Ireland for VAT under number: 9950340E. This email has been 
scanned for all known viruses by MessageLabs but is not guaranteed to be virus 
free; further terms and conditions may be 
found on our website - www.kainos.com 


Reply via email to