Buon giorno mi scuso in anticipo per un crossposting di ieri, scusate ancora.
Prima di scrivere ho dato un'occhiata qui nei vecchi post, ma non ho trovato nulla che facesse al mio caso.
Il problema che ho è di non saper come gestire l'history.back.
Gestisco la chiamata delle pagine attraverso la libreria jquery.history.js in questo modo:
Praticamente fino a quando non ho utilizzato la suddetta libreria, lo script per tornare indietro funzionava.codice:<script src="jQueryHistoryBack/jquery.history.js"></script> <script type="text/javascript"> // PageLoad function // This function is called when: // 1. after calling $.historyInit(); // 2. after calling $.historyLoad(); // 3. after pushing "Go Back" button of a browser function pageload(hash) { // hash doesn't contain the first # character. if(hash) { // restore ajax loaded state if(jQuery.browser.msie) { // jquery's $.load() function does't work when hash include special characters like aao. hash = encodeURIComponent(hash); } jQuery("#load").load("controlli.php?p=" + hash); jQuery("#briciole").load("briciole.php?p=" + hash); } else { // start page jQuery("#load").empty(); } } jQuery(document).ready(function(){ // Initialize history plugin. // The callback is called at once by present location.hash. //jQuery.historyInit(pageload, "jQueryHistoryBack/jquery_history.html"); //$.historyInit(pageload, "home.php"); jQuery.historyInit(pageload, "home.php"); // set onlick event for buttons jQuery("a[rel='history']").click(function(){ // var hash = this.href; hash = hash.replace(/^.*#/, ''); // moves to a new page. // pageload is called at once. // hash don't contain "#", "?" jQuery.historyLoad(hash); return false; }); }); if(window.location.hash===""){ jQuery(document).ready(function(){ jQuery("#load").load("controlli.php?p=home");//.html return false; }); } </script> HOME //carico le pagine attraverso il div load <div id="load"></div> //link per la pagina precedente [Paginaprecedente]
Ora come devo comportarmi?C'è qualcuno che può aiutarmi?
Grazie mille e buona giornata.

Rispondi quotando