Sync AJAX call
Orçamento $30-250 USD
- Freelancer
- Desenvolvimento Ágil
- MySQL
- Sync AJAX call
My problem; I want to make a synchronous call to AJAX, but of course without using "async = false", because this feature is deprecated.
My situation:
I have a js function, which makes a JSON call to a PHP Servlet. ($.getJSON("[login to view URL]",{...)
This Servlet contains a SQL querry to a database.
The SQL query returns an array A1.
This array A1 is returned from the Servlet via "echo json_encode($dataarray); "
The js function get A1, and returns this value.
Now I want that the value returned by the js function is the array A1. This implies that the system has somewhereto wait until the completion of the AJAX call before finishing the execution of the js function.
Concedido a:
8 freelancers estão ofertando em média $130 nesse trabalho
Hi, I edited your code based on a sample code to make synchronous calls without using "async: false" and I think it may work. I'd like you to contact me on the chat, so I'll send you the code for you to test. Thanks!
This can be done using simple global ajax handler I can do it Please contact.......................................
Greetings, I am experienced full stack developer with vast skills of development and design. I can complete your task in expected timeline. Kindly send me a message to discuss further. Your sincerely Drash