read the received json file from Bing.com - Javascript jQuery

Javascript examples for jQuery:Json

Description

read the received json file from Bing.com

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-2.1.0.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*w w w . jav a2 s.  c  o m*/
var url = 'http://api.bing.com/osjson.aspx?JsonType=callback&JsonCallback=?';
$.getJSON(url, {
    query: 'hulk'
}, function (data) {
    document.write(data)
});
    });

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

Related Tutorials