Advertisement
LrdArc

Sample code to use API with jQuery

Jan 25th, 2014
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
  2. <script>
  3.     var theurl = 'http://www.cscpro.org/secura/citizen/LrdArc.jsonp';
  4.     $.ajax({
  5.         url: theurl + "?callback=?",
  6.         dataType: 'jsonp',
  7.         success: function(data) {
  8.             alert("Citizen name is " + data.name);
  9.         }
  10.     });
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement