Organizational Research By

Surprising Reserch Topic

is there a version of getjson that doesnt use a call back


is there a version of getjson that doesnt use a call back  using -'jquery,json'

I am implementing a callback for a 3rdParty javascript library and I need to return the value, but I need to get the value from the server. I need to do something like this:

3rdPartyObject.getCustomValue = function {
   return $.getJSON('myUrl');
}


getJson uses XMLHttpRequest which (I believe) has both synchronous and asynchronous behaviors, can I use the synchronouse behavior?
    

asked Oct 6, 2015 by sujata naik
0 votes
9 views



Related Hot Questions

5 Answers

0 votes
NULL
answered Oct 6, 2015 by param.oncemore
0 votes
NULL
answered Oct 6, 2015 by rajnipancholi
0 votes
NULL
answered Oct 6, 2015 by rolvyrf
0 votes
NULL
answered Oct 6, 2015 by patelnikul321
0 votes
NULL
answered Oct 6, 2015 by ajit.chavhan

...