Jquery jsonp the call back - Javascript jQuery

Javascript examples for jQuery:Json

Description

Jquery jsonp the call back

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//from w ww  . j  a  v  a2 s  .c  o m
$.ajax({
    url: "https://api.github.com/repos/your link",
    dataType: "jsonp",
    crossDomain: true,
    success: function(returndata) {
        console.log(returndata.data[0].name);
    }
});
    });

      </script> 
 </head> 
 <body>  
 </body>
</html>

Related Tutorials