Hello
I have script below for uploading files. But, if i will set to element "fileinput1" attribute Visible="false", uploading doesn't work for any element with attribute Visibility="true".
- function submitbutton_click() {
-
- var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');
-
- var fileInputs = ["<%=fileinput1.ClientID%>", "<%=fileinput2.ClientID%>", "<%=fileinput3.ClientID%>"];
-
- if (!window.filesuploaded)
- {
- for(var i=0; i<3; i++) {
-
- var uploadobj = document.getElementById(fileInputs[i]);
- if (uploadobj.getqueuecount() > 0)
- {
- uploadobj.startupload();
- }
- }
- return false;
- }
-
- window.filesuploaded = false;
- return true;
- }