Does any javascript framework has a function, which:
- makes AJAX request
-
returns the response
( it does not take a callback function as an argument )
I basically want to do the AJAX request the same way I do SQL querys in C, python or whatever.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That would be a synchronous request, and JQuery does have this feature: http://api.jquery.com/jQuery.ajax/ Don’t know if it’s truly synchronous as I’ve not tried it that way. Look at the async setting in this documentation, set it to false.