-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys.
I'm having problems when I want to upload a file in IE 10+. When I try to click the upload button, it simply doesn't work. I have to click it several times and then it suddenly works (open the browse window to select file).
Here's a snip of the .zul file
<button id="btnUploadAttachedFile" label="Upload" upload="true,maxsize=10000" autodisable="btnUploadAttachedFile,buttonCreate"></button>
Someone can help me, please?
I was also facing the same issue, i.e. on IE10 had to double click upload button to open upload file window. i found a solution as below.
<script>
if (navigator.userAgent.indexOf('MSIE 10') > 0) {
$('#" + UploadJQuery.Id + "').bind('mousedown',function(event) {
$(this).trigger('click')
});
}
</script>
I hope it will solve your issue also.
Hi Darksu.
I'm sorry for write here but I cannot put a comment on your answer (I don't know why). I tried removing the autodisable and it doesn't works yet. I suspect it could be because a CSS error, due to ZK5 is drawing the upload file component in a rare way. Also I checked and there is no a 3rd app blocking the application.
Best regards.
Asked: 2015-03-20 16:57:10 +0800
Seen: 16 times
Last updated: Mar 27 '15
Filter fileupload with parameter accept
How save file uploaded into folder local (in disk) ?
File selector window doesn't popup after clicking Upload button
MVVM Radio button with form binding
How to handle big (large) file upload?
Below code from jo.js causes "Invalid object calling" error in IE10. Please provide solution.
which version you use? you can try to search in the issue tracker system http://tracker.zkoss.org/secure/IssueNavigator.jspa
hawk ( 2015-03-23 01:18:45 +0800 )editHi hawk, thanks for your response. I'm using ZK 5
antoniojimenez ( 2015-03-24 13:59:58 +0800 )edit