i've read Modify the URL without reloading the page
but i don't really understand or maybe my scripts needs an other command to work properly.
I've got this script to load content in the #content-Div without reloading the page:
function contentloader(dataid) {
$("#content").fadeOut(100).load("controller.php?id=" + dataid + "", {}, function () {
$(this).fadeIn("slow");
});
}
How can i manipulate the URL to.. like ?id="sitename"
if someone hits the link "sitename" ?
And is there also a possibility to mark the clicked link as "current", so it gets for example the class "current" if the link got clicked, this is just for css.
URL-Modify is just for reloading the page (if someone do so) and he lands back where he was and of course for the "back" and "forward" functions in browsers.