I am using a jQuery photo gallery script. It works in all browsers except IE7. I have narrowed down the block of code that is causing the issue I believe, which is:
- // 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) {
// alert("pageload: " + hash);
// hash doesn't contain the first # character.
if(hash) {
$.galleriffic.gotoImage(hash);
} else {
gallery.gotoIndex(0);
}
}
// Initialize history plugin.
// The callback is called at once by present location.hash.
$.historyInit(pageload, "advanced.html");
// set onlick event for buttons using the jQuery 1.3 live method
$("a[rel='history']").live('click', function() {
if (e.button != 0) return true;
var hash = this.href;
hash = hash.replace(/^.*#/, '');
// moves to a new page.
// pageload is called at once.
// hash don't contain "#", "?"
$.historyLoad(hash);
return false;
});
/****************************************************************************************/
I am using the format found at the following address:
Gallery...IE7 specifically throws an error in the block of code shown above. It prevents loading any image when clicking on a thumbnail.
If I remove that block of code, IE7 doesn't load anything gallery related.
Anyone able to shed some light on what is happening? This is a known issue with the script, so it is not specific to me.
Thanks.