You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by raphi <ra...@googlemail.com> on 2010/09/22 12:00:58 UTC

wicket ajax timeout(?) problem with IE8

Hi,

i am having a problem with an ajaxcall-response on IE8.
i have a modal overlay (jquery dialog) on which a fileupload is taking
place. my intention was that the modal overlay would close when the
fileupload finished. On firefox everything is working fine, i open the
overlay, upload a file (which has sometimes a size of > 500mb) by clicking
an AjaxButton and if the fileupload is done the overlay closes on
ajaxresponse.
with IE8 the fileupload ALSO succeeds(!) and the ajaxresponse is sent from
the server to the client but somehow the IE8 doesnt recognize the
ajaxresponse ( dialog("close")) if the file has more than about 200mb! 
my assumption is that the ajax-request which is sent on buttonsubmit is
waiting only a few seconds to get an ajaxresponse and if it takes to long
the IE8 doesnt recognize it anymore. 


Here is my code:

			protected void onSubmit(AjaxRequestTarget target, RTSForm<Void> form) {
				
				final FileUpload upload = fileUploadField.getFileUpload();
				if (upload != null)
	            {
					String filePath = String.format("%s%s","C:/",
upload.getClientFileName());

	                // Create a new file
	                File newFile = new File(filePath);

	                // Check new file, delete if it already existed	              
	                try
	                {
	                    // Save to new file
	                    newFile.createNewFile();
	                    upload.writeTo(newFile);
	                    
	                    //Inform HL about new Package
		                DTOOperation.Software.createPackage(newFile.getName(),
Group.getObject());
	                }
	                catch (IOException e)
	                {
	                    throw new IllegalStateException("Unable to write
file");
	                }                       
	            }			
				close(target);
				
			}



close(target) is adding javascript to the target which closes the jquery
dialog.

is there a way of telling the IE8 to wait for the response for a long time?
i thought about xmlhttprequest.setTimeout() ... but how can i do this with
wicket?
any suggestions?
thanks in advanced!
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-ajax-timeout-problem-with-IE8-tp2550031p2550031.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org