[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread minskmaz
Brandon - I solved my problem *temporarily* by using the callback function on ajaxComplete - however I have still not been able to simply define an event subscriber that rebinds to the 'a' tags inside of my newly .load(ed) container div. As Alexandre pointed out it's unclear whether I should be bi

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread Brandon Aaron
Post up an example so that we can see where LiveQuery is breaking for you. -- Brandon Aaron On Apr 27, 8:19 am, Sid <[EMAIL PROTECTED]> wrote: > I face the same problem. > New classes are simply not recognized, making my links disfunctional.

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread Brandon Aaron
LiveQuery has two types of "queries": event and function. A function based LiveQuery fires a given function when an element is added to the DOM and another function, if given, for when an element is removed from the dom. The function based LiveQuery is not attached to a particular event. The docs

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread Brandon Aaron
LiveQuery is actually working but jQuery's text method doesn't work on the title tag. To check that it is working simply add a console.log statement or uncomment your alert line. If you aren't getting the log statement/alert then please post a more complete example. -- Brandon Aaron On Apr 26, 3

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread Sid
I face the same problem. New classes are simply not recognized, making my links disfunctional.

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-26 Thread Alexandre Plennevaux
the thing is i'm not sure the load event is the right one to bind livequery to in your case. I personally would bind it to the click event triggering the ajax call. On Sat, Apr 26, 2008 at 11:26 PM, minskmaz <[EMAIL PROTECTED]> wrote: > > That's a really good catch Alexandre, however it didn't so

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-26 Thread minskmaz
That's a really good catch Alexandre, however it didn't solve the problem. The title still doesn't display the newly loaded #pagetitle class attribute... ~MM On Apr 26, 2:12 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > correct me if i'm wrong but i think livequery needs to know on whi

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-26 Thread Alexandre Plennevaux
correct me if i'm wrong but i think livequery needs to know on which event type it should be attached to: so something like this _ $("#pagetitle") .livequery('load',function() { //alert($(this).attr("class")); $("title").text($(this).attr("class")); return false; }); see the doc for more inf