I came across a strange error when I tried to run an ajax request, and I was not very successful in finding solutions.
Here is the error:
Line199offorms.js
is$.ajax({
in:
$.ajax({type:"POST",
url: _url,
cache: false,
data: {
type: 'excluir',
key: _data
},
dataType: 'json',
success: function(data) {
//success
}
});
PS: I've tried switching $
to jQuery
but it did not work.
PS. 2: References and calls from jQuery libraries are in the correct order.
The strangest thing is that this same file works to stop all other pages, since it is my global file for forms handling.