I’m making an attempt at a RESTful application but my $.ajax function stops in the middle of its execution.
function addEntry()
{
$.ajax({
type: 'POST',
contentType: 'application/json',
url: passAPI,
dataType: "json",
data: dataToJSON(),
success: hideform
})
}
function hideform()
{
$('#form').hide();
}
The data is put correctly in the database but the form doesn’t get hidden. Anyone know why that happens ?
I tried setting up an error statement that didn’t return anything. When I tried again it worked.
I think I fixed some dumb syntax error.
Sorry !