html-код моей веб-страницы, подобный этому
$.ajax({
type : "Get",
url : "http://localhost:9999",
data : {"servicename" :"test"},
timeout:100000,
beforeSend: function(xhr) {
},
success: function(rs) {
alert("[success]" + rs);
},
complete:function(XMLHttpRequest,textStatus){
if(XMLHttpRequest.readyState=="4"){
alert("response text= " + XMLHttpRequest.responseText);
}
},
error: function(XMLHttpRequest,textStatus,errorThrown){
alert("error:"+textStatus);
}
});
Я использую строку запроса url (http://localhost:9999?servicename="test"
), могу получать данные, но я использую jquery, ничего не получая.Версия jquery 1.4.Netty Server запускает пример HttpSnoopServer.java.