[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread noon
livequery accepts two parameters, the first is the event to which a function (the 2nd parameter) is bound to. $('a.someLink').livequery('click', function() { // anchors with a class of 'someLink' // can now be dynamically inserted to the dom // yet still have an 'onclick' event associated

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread noon
sorry, I am incorrect. I forgot there were multiple forms. That should work On Jul 16, 2:29 pm, noon [EMAIL PROTECTED] wrote: livequery accepts two parameters, the first is the event to which a function (the 2nd parameter) is bound to. $('a.someLink').livequery('click', function() {   //

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread hubbs
Ok, I realize it is working. But, for some reason it is not working with the ajaxload script. I have a feeling I have to somehow call the ajaxload from within livequery. $('a.ajax').ajaxContent({ target:'#adminToolsListing', event:'click', loaderType:'img',

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread hubbs
Got it: $(#calScrollTitle a) .livequery(function(){ $(this).addClass('ajax').ajaxContent({ target:'#adminToolsListing', event:'click', loaderType:'img', loadingMsg:'/__data/assets/image/0018/24345/announce- loading.gif' });