1
I am using Ajax to send data via POST, the "problem" is that I do not want it to be sent asynchronously in the background, I would like to send with the same behavior of a form Ubmit, I added the option: async:false
, but nothing has changed, how to proceed?
Update: It is not feasible to create a normal form and "inject" the parameters, as they are arrays and generated in javascript.
So why don’t you bring that content to the page’s own response? There’s no reason to make a synchronous JS request.
– Woss
Kind of pointless this, no?
– LeAndrade
I don’t understand, Anderson, the parameters are generated in javascript and sent...
– Thiago
and since the parameter is an array, it would be impossible to do "a gambiarra" and inject this data in a generic form
– Thiago
face is the following, the newer versions of Jquery do not have
async: false
– Wees Smith
So there is no way to do it? at least not with ajax?
– Thiago
Exactly, it accompanies here http://api.jquery.com/jquery.ajax/
– Wees Smith