jquery - AJAX VS JSon "Cross Domain Built-in Security" Question -


It looks like I can not call "AJAX" outside of the existing domain name but I have jquery twitter API ( With JSON) I am able to call ... not using both the XMLHTTP objects? If this is (or not), why am I able to call another domain name with JSON (using JQuery), but not with AJAX? What is the difference between Ajax and JSON?

The Twitter API uses JSONP, which does not use XMLHTTPRequest, but the "foreign" JavaScript To include & lt; Script & gt; This script uses the tag then calls the function in its own JavaScript.

The Google Maps integration in third party websites will not be possible without this "hack" (this is exactly what it is: a hack).

Here is more information on JSONP:

Or in Wikipedia article on JSON:


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -