I have written a wcf service and Iam calling that from javascript.But I couldnt view any response My code is .. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> function invokeService() { $(document).ready(function(){ $.ajax({ type:"GET", async:false, url:"http://localhost:8732/IServices/RoleService/json/name/doctor", contentType:"application/json; charset=utf-8", dataType:"json", processData:true, success:function(result){ AjaxSucceeded(result); }, eror:AjaxFailed }); function AjaxSucceeded(result) { alert(result); } function AjaxFailed(result){ alert(result.status+''+result.statusText); } } </script> </head> <body> <form id="form1" runat="server"> <div> <input type="button" onclick="javascript:invokeService();" value="Call WCF Service" /> </div> </form> </body> How can I resolve it?Im getting neither errors nor response ?Where I am going wrong? Thanks...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)