I’m using jquery with datatable.editable plugin,
I’m managing to add a dropdown from static variables like this :
"aoColumns" : [
{ // CLIENT
type : 'select',
data : string_in_json_format,
submit : 'OK'
}
but if i use the server side response, which sends back the same response it doens’t work.
And i can’t find anywhere what should be the format of my response.
this is what i want :
"aoColumns" : [
{ // CLIENT
type : 'select',
loadurl: '/RetrieveDropdownServlet',
loadtype: 'GET',
submit : 'OK'
}
The response of RetrieveDropdownServlet is exactly the same (as shown from firebug), but still the dropdown is empty
Thank you
well i found what was the problem
in my servlet i didn’t add
response.setContentType("application/json");so that was the problem.