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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to