Hello guys, Last monday I made a question about how to post information to a form with ajax. I dont know if I was clear, then I will explain with more details now.
The site has a form without an action. The submit button (actually an image) has a javascript function associated. The javascript function (autenticateUser()) calls another javascript function (AutenticacaoWebRemoteBean.autenticarUsuario()) whith some parameteres: emailLogin, password, returnUrl, restrictionLevel, and an autenticateUserCallback) This function (AutenticacaoWebRemoteBean.autenticarUsuario()) calls a function that belongs to DWR Ajax Framework, called DWREngine._execute() with many parameters. This function (_execute()) is not visible, that´s part of the framework. HTML/JAVASCRIPT <------> (DWR) <-------> JAVA Now, as an last effort, I used a http sniffer to find out the url the browser sends the data. It´s an .dwr file, probably an "proxy" that repass data to a java class, accordingly http://getahead.ltd.uk/dwr/overview/dwr . The url seems like Http:// (...)/Servlets/DWRServlet/exec/AutenticacaoWebRemoteBean.autenticarUsuario.dwr This url is not valid. If I try to point my browser to it, returns: "Error. This may be due to an unsupported browser." That´s it. I hope this help so you can help me post the data. :) Thank you! Marcelo.
