I have created app in script.google.com and defined the function below which is triggered when any cell in the sheet will change.
Now I would like to update that value in mysql database so i need ajax call.
below are the script code which is defined in my google script (script.google.com).
function onEdit(e) {
var row_res = e.range.getRow();
var column = e.range.getColumn();
$.ajax({
url : 'http://dev.digitalvidya.com/assist/sheet/sort',
type : 'GET',
data : {
'row' : row_res
},
dataType:'json',
success : function(data) {
alert('Data: '+data);
},
error : function(request,error)
{
alert("Request: "+JSON.stringify(request));
}
});
}