I want to update the page content with JQuery ajax depending on the URL.
For example, if the url is /contact it will include the contact page without refreshing.
I have the .htaccess file which deals with the URL.
This is the JQuery that I have, but I don't think it's right for what I want to achieve.
$('#topBar .topBarElement').click(function() {
var page = $(this).attr('href');
$('#content').load('content/' + page + '.php');
return false;
});