Skip to content
Advertisement

Ajax GET Request inside ajax post request?

Is it possible to make an ajax request inside another ajax request? because I need some data from first ajax request to make the next ajax request.

I tried to make a script, but i see that instead of GET, my request is POST and i dont know where is the problem..

JavaScript

Advertisement

Answer

My code works perfectly, the real problem was in the controller, instead of:

JavaScript

my code was with $res = $client->post.

Advertisement