I am rather new to AJAX, and is currently learning how to implement jQuery Address on a demo site so that I could port it over to a personal project that I'm working on.
While I am able to load the desired content through hyperlinks as well as modify the URL hash, I am unable to navigate to a particular state if I enter the URL hash directly in the browser bar.
The current code goes something like this:
$("h2.entry-title a").live('click', function(event) {
event.preventDefault();
$("#content").fadeOut("slow").load($(this).attr("href")+" #content > *", function() {
$.address.value("?page=entry");
}).fadeIn("slow");
});
I tried looking for tutorials and demos about using jQuery Address to implement deep linking, but so far it yielded nothing fruitful.
Thanks for all your help :)
p/s: The reason why I used .live() instead of .bind() is because at some point more entry titles will be inserted dynamically.