Felipe Fraga wrote: > Hello, > > Using Struts 2 built-in dojo, you could just: > > function submitForm(namespace, action, formName, targetDivName) { > var theForm = dojo.byId( formName ); > //remove initial slash > var theUrl = namespace.substring(1,namespace.length) + "/" + action + > ".action"; > dojo.io.bind({ > url: theUrl, > formNode: theForm, > load : function(type, data) { dojo.byId( targetDivName > ).innerHTML = data;}, > error: function(type, error){ dojo.byId( targetDivName > ).innerHTML > = error.message; }, > mimeType :"text/html", > method: "POST" > }); > } > > If you suppress the url, the form action is used instead. >
clearly, a much better solution than mine. felipe, did my suggestion even have a shot of working? i don't know dojo internals, and i'm hardly a "javascript programmer"... knowing only enough to get myself in trouble... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org