Hi antiflu,
Do you get the same problem with the default demo? Does it only happens on your own page?
#1 the javascript errors
Please create an example page name "example.aspx" with the code below under your test site and access it by the full url like
http://localhost/upload2/example.aspx, does it get the same javascript error?
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>example</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server">
- </CuteWebUI:UploadAttachments>
- </form>
- </body>
- </html>
#2 When I press the "Upload" button once, it doesn't work. Only the second time it works.
Please try the example page below, does it get the same problem?
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>example</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div style="visibility: hidden" id="div1">
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server">
- </CuteWebUI:UploadAttachments>
- </div>
- <script>
- function CuteWebUI_AjaxUploader_OnInitialize()
- {
- var div1=document.getElementById("div1");
- div1.style.visibility="";
- }
- </script>
-
- </form>
- </body>
- </html>
Regards,
Ken