[jQuery] Livequery not binding on div after a .load method
<span class="Apple-style-span" style="border-collapse: collapse; "><div>I'm sure this isn't a bug. Here's the node I'm trying to grab -- </div><div>
</div><div><div id="pagetitle" class="TEST FOLDER!!!"></div></div>
<div>
</div><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</div>
<div>
</div><div>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.</div><div>
</div><div>
Thanks in advance for looking this over I've also posted the highlighted code at - <a href="http://www.pastie.org/187268" target="_blank" style="color: rgb(0, 0, 204); ">http://www.pastie.org/187268</a></div><div>
</div><div>#########################################################################</div><div>
</div><div>$(document).ready(function() {</div><div>
</div><div> $("#pagetitle")</div><div><span style="white-space: pre; "> </span>.livequery(function() { </div>
<div><span style="white-space: pre; "> </span>//alert($(this).attr("class"));</div><div><span style="white-space: pre; "> </span>$("title").text($(this).attr("class"));</div><div><span style="white-space: pre; "> </span>return false;</div>
<div><span style="white-space: pre; "> </span>});</div><div>
</div><div> $(".main_link")</div><div> .livequery("click", function(){</div><div> $.cntx = $(this).text().toLowerCase();</div>
<div> $.div = ' #container';</div><div> $.url = '<a href="http://localhost:8080/test/" target="_blank" style="color: rgb(0, 0, 204); ">http://localhost:8080/test/</a>' + $.cntx + $.div;</div>
<div> $(".body_content").load($.url);</div><div> return false;</div><div> });</div><div>
</div><div> $("#container a")</div><div> .livequery("click", function(){</div>
<div> $.div = ' #container';</div><div> $.url = $(this).attr('href') + $.div;</div><div> $(".body_content").load($.url);</div><div> //alert($.url);</div>
<div> return false;</div><div> });</div><div>
</div><div>});</div></span>