menu

Sunday 7 April 2013

How to Callback Cross Domain Data with Jquery & JSON

callback cross domain data with jQuery and JSON(JavaScript Object Notation) is a lightweight data-interchange format.

Just copy and paste this following code between tag. You can display phpgang data.
phpgang.json.js
Javascript code read the JSON file.
phpgang_json.php
Contains PHP code displaying results from Messages table in JSON format.
 phpgang_json.css

*{margin:0px; padding:0px;}
ol.jsonbox {
font-family:"lucida grande",tahoma,verdana,arial,sans-serif;
font-size:11px;
color:#FFFFFF;
list-style:none;
width:300px;
padding:10px 10px 25px 10px;
background:url(http://www.phpgang.com/wp-content/uploads/gang.jpg)
bottom right no-repeat;
background-color:#333333;
text-align:left
}
ol.jsonbox li { padding-bottom:4px}
ol.jsonbox li a{color:#80c8e5; text-decoration:none}
ol.jsonbox li a:hover{color:#80c8e5; text-decoration:underline}

No comments:

Post a Comment