Java Reference
In-Depth Information
function process(response) {
document.getElementById("output").innerHTML =;
This callback function is automatically given the response data as an argument. We can
then process the data in any way we like inside the function. In this case, we simply want
to display the value of the name property in the output div.
Open jsonp.htm in a browser and try pressing the button. If everything is working properly,
you should see a similar display to the screenshot shown in Figure 13.2 .
Figure 13.2. A JSONP example
Search WWH ::

Custom Search