<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script> <script type="text/javascript"> function callservice() { $.ajax({ type: "POST", url: "http://api.geonames.org/findNearbyPlaceNameJSON?lat=47.3&lng=9&username=demo", contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { var Employee = response.d; }, failure: function (msg) { alert(msg); } }); } </script> </head> <body> <form id="form1" runat="server"> <div> <button id="btnsample" runat="server" onclick="callservice();" >Run Service</button> <table id="tbldata"></table> </div> </form> </body> </html>
the deaily limit of 30000 credits for demo has been exceeded. Please use an application specific account. Do not use the demo account for your application.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)