<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script type = "text/javascript"> $(document).ready(function(){ $("#login").click(function () { var ret_data = "g"; alert("here"); var html = ""; $.ajax({ type: "post", contentType: "application/json; charset=utf-8", url: 'http://10.19.193.74/unmswebservice/fcc.asmx/AuthenticateUser', data: {Username: '+ $("#prefix").val() +',Password: '+$("#pass").val()+',AuthenticatedToken: '+ret_data+' }, processData: true, dataType: "json", success: function (response) { var customers = eval(response.d); alert(ret_data); $("#results").html(html == "" ? "No results" : html); }, error: function (a, b, c) { alert("FF"); // alert(a.responseText); } }); }); }); </script> </head> <body> <form id="form1" action="http://10.19.193.74/unmswebservice/fcc.asmx" method="post"> <span>user name</span> <input type ="text" id = "prefix" /> <br/> <span>password</span> <input type="text",id="pass"/> <br/> <input id = "login" type = "button" value = "Search" /> <div id = "results"></div> </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)