Jquery Json

Display different domain data using Jquery and JSON.

Some days back I had posted a tutorial about parsing JSON data with jQuery .getJSON(). In this post I want to explain about ‘How to use JSON callback and to display cross domain data with jQuery’. It’s simple and useful.

Just copy and paste this following code between <body> tag. You can display another domain data.

domain.json.js
Javascript code read the JSON file.

json.php



Contains PHP code displaying results from Messages table in JSON format.

domain_css.css