se a qualcuno può essere utile ho fatto delle modiiche alle chiamate ajax notando dei miglioramenti:
Codice PHP:
$(document).ready(function ()
{
var urlProcessData = 'home/saveResult';
$('.btn_submit').click(function(x)
{
// al click del bottone faccio partire la prima chiamata ajax
var x = $.ajax({
url: urlProcessData,
type: 'post',
data: $('#Form').serializeArray(),
});
});
$().ajaxStart(function (event, request, settings)
{
$('#loading').fadeIn(); // faccio comparire il div con la gif di loading
$('#box_test').fadeOut(function(){
$(this).html(" "); //svuoto il contenuto del div box test
});
});
$().ajaxStop(function()
{ $('#loading').hide();
var y = $.get('ajax/' + ajaxpage + '.php', function(data)
{
$('#box_test').fadeIn(function()
{
$(this).append(data);
});
alert(y);
});
});
});
spero che qualcuno davvero mi aiuti.