Ciao.
Non riesco a tirar fuori il valore di data.idRow in una variabile php, come si fa?
Grazie!
Non riesco a tirar fuori il valore di data.idRow in una variabile php, come si fa?
Codice:
<script type="text/javascript">
$(document).ready(function()
{
$('td.editable-col').on('focusin', function()
{
data = {};
data['val'] = $(this).text();
data['ID'] = $(this).parent('tr').attr('data-row-id');
data['index'] = $(this).attr('col-index');
data['idRow'] = $(this).attr('idRow');
if($(this).attr('oldVal') === data['val'])
return false;
$.ajax(
{
type: "POST",
url: "INC__/Serve.php",
cache:false,
data: data,
dataType: "json",
success: function(response)
{
//$("#loading").hide();
if(!response.error)
{
//$("#msg").removeClass('alert-danger');
//$("#msg").addClass('alert-success').html(response.msg);
$pippo=$('#msg').html(data.idRow)
} else
{
$("#msg").removeClass('alert-success');
$("#msg").addClass('alert-danger').html(response.msg);
}
}
});
});
});
</script>