2
Good afternoon Guys, I have an ajax that sends a post some information, in PHP I saved this information in Ssion, I would like to update the DIV where I have a foreach (PHP) to update so that I am not getting below the ajax. In case I would like to update only the div and nothing else is it just run the foreach again that will get the data from Session that now has one more item so that I am not getting anyone can help?
$(document).ready(function() {
$('.incluir_item').submit(function() {
var dados = $(this).serialize();
$.ajax({
type: "POST",
url: "calibracao_incluir_itens.php",
data: dados,
beforeSend: function() {
$('#incluir-item').fadeOut('fast').modal('toggle');
$('<div class="ajaxModal"><div class="ajaxModal-preload"><p>Incluindo cliente aguarde!</p></div></div>').insertAfter('body');
$('.ajaxModal').fadeIn('fast');
},
success: function(data) {
ajaxModal_Close();
$('#tabela_calibracaoes').html('#tabela_calibracaoes');
}
});
return false;
});
});
Thanks in advance.
oq returns in "Success: Function(date)" ??
– Matheus
In case it returns data from my Session items($_SESSION['items']) what should I do with it?
– Maicon Fernando Stefene da Sil
Can you explain exactly what’s failing?
– Sergio