iv'e been trying to figure this one out all night, I have a ajax script in my background that gets new information and posts it on the content area of a page. (navigation).
works fine in all browsers.. BUT when I want my contact page shown, all browsers except for IE shows the damn page! why!?
example, i press news *pop* goes the news and shows up.
but contact it says *pop* and nothing shows! it's annoying!
It wont show my form, but when I go to the direct link, it shows fine (ofc. without css).
but it's just weird that it shows everything else, just not this. remember all browsers works with my contact page, but not IE
Well the complete code for the contact form is the one shown above, it's coded with Ajax/Jquery behind the scenes, so it calls forth different sites and includes them.
var default_content="";
$(document).ready(function(){
checkURL();
$('ul li a').click(function (e){
checkURL(this.hash);
});
//filling in the default content
default_content = $('#pageContent').html();
setInterval("checkURL()",250);
});
var lasturl="";
function checkURL(hash)
{
if(!hash) hash=window.location.hash;
if(hash != lasturl)
{
lasturl=hash;
// FIX - if we've used the history buttons to return to the homepage,
// fill the pageContent with the default_content
if(hash=="")
$('#pageContent').html(default_content);
else
loadPage(hash);
}
}
function loadPage(url)
{
url=url.replace('#page','');
$.ajax({
type: "POST",
url: "load_page.php",
data: 'page='+url,
dataType: "html",
success: function(msg){
if(parseInt(msg)!=0)
{
$('#pageContent').html(msg);
}
}
});
}