$('#myEventList div.itemContent a.event').bind('click',function(){

should be the same as

 $('a.event',this).bind('click',function(){

faster and shorter!

On 6/30/07, Tobias Parent <[EMAIL PROTECTED]> wrote:


Answering my own question... I tried it out, and this works beautifully,
so far:

             $('#myEventList div.itemContent').load('/events/quicklist',
function(){
                 $('#myEventList div.itemContent a.event').bind('click',
function(){
                     showEventDetails(this.id);
                 })
             });


... And then showEventDetails() strips out what it needs, and does the
same load() for each related DIV. Woo-hoo!! jQuery ROCKS! And it makes
rapid development simple with CakePHP!!

Regards,
-Toby




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to