smalltalk
/
osmo-st-all
Archived
1
0
Fork 0

Not using the iFrame hack for making the back button work with IE anymore

This commit is contained in:
Nicolas Petton 2009-08-20 00:19:43 +00:00
parent ff8b5e84ed
commit 80ee7a17ad
1 changed files with 0 additions and 18 deletions

View File

@ -43,7 +43,6 @@ var iliad = function() {
* -------------------------------------------------------------- */
var hash = "";
var iFrameHash = null;
var actionsLocked = false;
@ -141,29 +140,12 @@ var iliad = function() {
var setHash = function(hashString) {
hash = hashString;
window.location.hash = hash;
//IE is different, as usual....
if(jQuery.browser.msie && parseInt(jQuery.browser.version) < 8) {
fixHistoryForIE();
}
};
var getHash = function() {
return window.location.hash.substr(1);
};
//Special hack for IE < 8.
//Else IE won't add an entry to the history
var fixHistoryForIE = function() {
if(!iFrameHash) {
iFrameHash =
jQuery("<iframe id='_iliad_hash_iframe'" +
"style='display: none'></iframe>").prependTo("body")[0];
}
//Add history entry
iFrameHash.contentWindow.document.open();
iFrameHash.contentWindow.document.close();
iFrameHash.contentWindow.document.location.hash = hash;
};
/* ---
* Page updates