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:01 pm, "Minsk Maz" <[EMAIL PROTECTED]> wrote: > I'm sure this isn't a bug. Here's the node I'm trying to grab -- > > <div id="pagetitle" class="TEST FOLDER!!!"></div> > > The objective is to set the page title to #pagetitle('s) class attribute's > value - the node has no text and is delivered at the beginning of each new > page brought in through a .load ajax method > > The function seems to only fire on the initial page load -- not using .load > -- so when the new instance of pagetitle is brought in by .load livequery > doesn't seem to nortice. > > Thanks in advance for looking this over I've also posted the highlighted > code at -http://www.pastie.org/187268 > > ######################################################################### > > $(document).ready(function() { > > $("#pagetitle") > .livequery(function() { > //alert($(this).attr("class")); > $("title").text($(this).attr("class")); > return false; > > }); > > $(".main_link") > .livequery("click", function(){ > $.cntx = $(this).text().toLowerCase(); > $.div = ' #container'; > $.url = 'http://localhost:8080/test/'+ $.cntx + $.div; > $(".body_content").load($.url); > return false; > }); > > $("#container a") > .livequery("click", function(){ > $.div = ' #container'; > $.url = $(this).attr('href') + $.div; > $(".body_content").load($.url); > //alert($.url); > return false; > }); > > });