$ (function () {
$.ajax ({
URL: ' http://ihisuns.vicp.cc:8765/PcClient.aspx ',
Data: {"ModuleName": " Mixindialogue "," MethodName ":" Getmixindialogue "," Id ":" 1 "},
datatype:" Jsonp ",
Jsonp:" Jsonpcallback ",
Success:function (data) {
//var $ul = $ ("<ul></ul>");
//$.each (data, function (I, v) {
//$ ("< Li/> "). Text (v[" id "] +" "+ v[" name "]). AppendTo ($ul)
//});
//$ ("#res"). Append ($ul);
Alert (data);
},
Beforesend:function () {
$ (". Search_loading"). Show ();
},
Complete:function () {
$ (". search_l Oading "). Hide ();
},
Error:function (XMLHttpRequest, Textstatus, Errorthrown) {
Alert (xmlhttprequest.readystate + "| |" + XMLHT Tprequest.status + "| |" + textstatus + "| |" + errorthrown);
}
});
});
/************************************ less Careless *********************/
Jsonpcallback Auto-generated values after background
//string callbackmethodname = request.querystring["Jsonpcallback"];
//response.contenttype = "text/html; Charset=utf8 ";
//response.write (Callbackmethodname + "({\" employees\ ": [{\" firstname\ ": \" bill\ ", \" lastname\ ": \" Gate S\ "}]});
//response.end ();