$.ajax({ url: "/" + controller + "/" + action + "/" + id + "/", type: "Get", cache: false, error: (function (error) { alert(error) }), success: (function (response) { $("#Content").html(response); document.title = response.pageTitle; //window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath); if (history.pushState) { //history.pushState(null, null, '#myhash'); window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath); } else { window.location.pathname = urlPath; // window.history.pushState({ "html": response.html, "pageTitle": response.pageTitle }, "", urlPath); } //alert(data); }) });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)