Send synchronous request with ajax

Asked

Viewed 56 times

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.

  • 3

    So why don’t you bring that content to the page’s own response? There’s no reason to make a synchronous JS request.

  • Kind of pointless this, no?

  • I don’t understand, Anderson, the parameters are generated in javascript and sent...

  • and since the parameter is an array, it would be impossible to do "a gambiarra" and inject this data in a generic form

  • face is the following, the newer versions of Jquery do not have async: false

  • 1

    So there is no way to do it? at least not with ajax?

  • Exactly, it accompanies here http://api.jquery.com/jquery.ajax/

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.