From: Miguel P. <mr_...@ho...> - 2006-09-19 21:18:49
|
I'm trying to write a javascript using AJAX to return some values from the server. For example var req; function validate() { var idField = document.getElementById("userid"); var url = "validate?id=" + escape(idField.value); if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } req.open("GET", url, true); req.onreadystatechange = callback; req.send(null); } My question is how do I get the values back from coefficient. I can execute the methods and a module but I don't have access to response.getWriter from ctx. Do I need to write a next class, modify CoefficientServlet, or is there a way to do this via ctx (coefficientcontext)? Any help would be deeply appreciated. regards |