Hello stworthy,
you mean we should set the response data-type to text/plain on the remote controller - yes?
But this is not so easy, we use Spring-Framework to handle the request/response methodes.
Also the Problem is only with IE data handling!
So my question was:
how can we set the Accept attribute for the request-header on client site, when we use the
EasyUi Form before submit the form data.
There should be an easyui form option to set this ajax post attributes like this:
$.ajax({
type: "post",
url: "http://localhost:8082/testFormSubmit.do",
data:'sADesc=' + $("#sADesc").val() + "&sARack=" + $("#sARack").val(),
dataType: 'json',
contentType: 'application/json',
accept: {
json: 'application/json',
xml: 'application/xml'
},[/b]
success: function(response){
consoleLog(JSON.stringify(response));
},
error: function(){
alert('Error while request..');
}
});
Easyui only use the attribute dataType: 'json' in the form plugin.
The is not attribute to set contentType or accept for the form!