here is a snippet of code I am working on
$.ajax({
type: 'GET',
url: "<%=request.getContextPath()%>/manageUsers.do",
cache: false,
data:{ "resultType": "json", "submit": $.i18n.prop('esadmin.manage.users.delete-btn'), "OID": oid },
invokedata: { "OID": oid, "username": username },
contentType: "application/json",
dataType: "text",
success: deleteUserSuccess,
error: deleteUserError
});