I've got a page on my site that requests quite a bit of content via AJAX. The problem I've run into is that if you've been poking around on the site and are on a page that doesn't technically have a URL, you can't copy/paste the URL and send it to someone, since you'll just end up on the home page.
I was looking at facebook, and they use an anchor for a URL that's been requested past the original URL, like this: http://www.facebook.com/#/somepage
(if you were on the home page and went to somepage
, and that's an AJAX request).
Setting an anchor on the URL wouldn't be a problem at all, since I use <a>
tags for all my AJAX stuff anyway, but how would I be able to get mysite.come/#/some-ajax-page/
to work properly and display what some-ajax-page
should be and not just try to find the anchor named /some-ajax-page/
in the DOM?
P.S. I use jQuery for my JS and Django server-side