Estou usando o jquery + ajax para abrir os conteudos no meu site.. porém pude perceber q não consigo abrir paginas com codigos em php.. algm saberia resolver o problema ?
$.ajax({ //create an ajax request to load_page.php type: "POST", url: "scripts/load_page.php", data: 'page='+url, //with the page number as a parameter dataType: "html", //expect html to be returned success: function(msg){ if(parseInt(msg)!=0) //if no errors { $('#pageContent').fadeIn("slow"); $('#pageContent').html(msg); //load the returned html into pageContet $('#loading').css('visibility','hidden'); //and hide the rotating gif } } });