I use ajax in my web application and now I need the back and forward buttons for the browser to work. So I went looking for the jquery history plugin and found this: http://stilbuero.de/jquery/history
In my code, I use the function to load the page:
function loadDocument(id, doc) { $("#DocumentContent").show(); // Clear dynamic menu items $("#DynamicMenuContent").html(""); $("#PageContent").html(""); // Load document in frame $("#iframeDocument").attr("src", 'ViewDoc.aspx?id=' + id + '&doc=' + doc + ''); // Load menu items $("#DynamicMenuContent").load("ShowButtons.aspx"); }
As you can see, I want my pages to load in an iframe. Can someone tell me how I can use the history plugin to work with buttons? I donβt care what plug-in it is, as long as the browser buttons work. I prefer an easy to use plugin.
source share