IE has astounded me again with it's amazing browser capabilities. This time assuring a lovely error in the jQuery.min file (google CDN) thus somehow causing my jquery not to load content via AJAX.
Here's the link: http://themes.thefinishedbox.com/portfolio/
Click on the top links in any other browser before testing in IE you'll see that they load external pages into an appended div via jQuery.
I noticed in IE8 it seems to get to get as far as the loader icon and doesn't load the page. I've alerted the $href variable and that seems to be the corrent URL. Not sure what is going on here?
Here's the source if that helps or you can just look at it RAW: http://themes.thefinishedbox.com/portfolio/wp-content/themes/portfolio/js/custom.js?ver=3.1 (you'll want to look at the second $(function()
$(function() {
$('#navigation ul > li a').each(function() {
$(this).click(function(e) {
$('*').removeClass('active');
$.ajaxSetup ({
cache: false
});
var $this = $(this);
e.preventDefault();
var $url = $(this).attr('href');
var $loader = '<div id="whiteLoader" />';
if($('#page').length === 0) {
$('<div id="page" />').insertAfter('#header');
$('#page').queue(function() {
$(this).animate({height: '120px'}, 300);
$(this).html($loader);
$(this).animate({backgroundColor: '#fff'}, 300);
$(this).dequeue();
});
$('#page').queue(function() {
$('#page').load($url + ' #pageEntry', function() {
var $height = $('#pageEntry').height();
var $h = $height + 70;
$(this).animate({height: $h + 'px'}, 600, function() {
$(this).css({height: 'auto'});
$this.addClass('active');
});
});
$(this).dequeue();
});
}
if($('#page').length == 1 && $('#pageEntry').length == 1) {
$('#page').slideUp(function() {
$(this).remove();
$this.removeClass('active');
$('<div id="page" />').insertAfter('#header');
$('#page').queue(function() {
$(this).animate({height: '120px'}, 300);
$(this).html($loader);
$(this).animate({backgroundColor: '#fff'}, 300);
$(this).dequeue();
});
$('#page').queue(function() {
$('#page').load($url + ' #pageEntry', function() {
var $height = $('#pageEntry').height();
var $h = $height + 70;
$(this).animate({height: $h + 'px'}, 600, function() {
$this.addClass('active');
});
});
$(this).dequeue();
});
});
}
$('.closex').live('click', function() {
$(this).parent().parent().slideUp(function() {
$(this).remove();
$('*').removeClass('active');
});
});
});
});
});
Any help would be massively appreciated!