On 2 October 2013 20:29, Jose Urquidi wrote:
> I have this in my .html.erb code:
>
> $.ajax({
> url: "/timeMachineEdit",
> data: {editTimeMachine: newArray},
> type: 'POST',
> success: function (res) {
> if (res.result === 'ok') {
> alert('Data saved');
> } else {
> alert(
I have this in my .html.erb code:
$.ajax({
url: "/timeMachineEdit",
data: {editTimeMachine: newArray},
type: 'POST',
success: function (res) {
if (res.result === 'ok') {
alert('Data saved');
} else {
alert('Save error');
}
},
error: function () {
alert('Save erro
2 matches
Mail list logo