struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jogep <jo...@web.de>
Subject Re: Image Upload and Dojo
Date Mon, 17 Dec 2007 10:53:20 GMT

I found this Workaround:

<script type="text/javascript">
dojo.require("dojo.io.IframeIO"); 
function sendIt(){
   var bindArgs = {
       transport: "IframeTransport",
       formNode: document.getElementById("myform"),
       mimetype: "text/html",
       load: function(type, data, evt){
           document.getElementById("mydiv").innerHTML =
data.firstChild.innerHTML;
       }
   };
   var request = dojo.io.bind(bindArgs);
}
</script>

and the Button I've changed to this:
<sx:submit value="Speichern" transport="IframeTransport" onclick="sendIt();
return false;"  showLoadingText="false"/>


this works, but is there a way to solve this problem with Struts2 ?

Best Regards
Johannes Geppert
-- 
View this message in context: http://www.nabble.com/Image-Upload-and-Dojo-tp14350527p14370216.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message