I've this simply code in status.php:
<script type="text/javascript">
$(document).ready(function() {
$("form#iscrizione").submit(function(){
var ordine = $("#ordine").val();
var cognome = $("#cognome").val();
$.ajax({
type: "POST",
url: "http://****/new/action.php",
data: "cognome=" + cognome + "&ordine=" + ordine,
dataType: "html",
success: function(risposta) {
$("div#risposta").html(risposta);
alert("ok!");
},
error: function(){
alert("Chiamata fallita!!!");
}
});
return false;
});
});
</script>
In my page (status.php) it works!
But when I put a frame of status.php in index.php it doesn't work and change only the url like: ?cognome=Esposito&ordine=2121237391
What should I to in order to work as a frame in index.php ?