CuteWebUI_AjaxUploader_Initialize is not defined

Last post 04-15-2011, 10:08 AM by Eric. 10 replies.
Sort Posts: Previous Next
  •  09-14-2010, 2:33 AM 63975

    CuteWebUI_AjaxUploader_Initialize is not defined

    Hi i am getting     
    "CuteWebUI_AjaxUploader_Initialize is not defined "  for ajax multiple file upload
    can anybody guide me
    Filed under:
  •  09-14-2010, 3:16 AM 63976 in reply to 63975

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Hi pandurang,
     
    Please post your page code here.
     
    Also, you can try the example below
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4.   
    5.   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head runat="server">   
    8.     <title>Untitled Page</title>   
    9. </head>   
    10. <body>   
    11.     <form id="form1" runat="server">   
    12.         <div>   
    13.             <CuteWebUI:UploadAttachments ID="attachment1" runat="server">   
    14.             </CuteWebUI:UploadAttachments>   
    15.         </div>   
    16.     </form>   
    17. </body>   
    18. </html>   
    19.   
    20. <script>   
    21.   
    22. function CuteWebUI_AjaxUploader_OnInitialize()   
    23. {   
    24.  var hidden=this;   
    25.   
    26.     //warning , using the internalobject is not recommend .   
    27.   
    28.     //if you use it, you need test the uploader again for each new version.   
    29.     var arr=[];   
    30.     for(var p in hidden.internalobject)   
    31.     {   
    32.        arr.push(p);   
    33.   
    34.     }   
    35.     alert("internal object member list : "+arr);   
    36.   
    37. }   
    38. </script>  
    Regards,
     
    Ken
  •  09-14-2010, 3:50 AM 63978 in reply to 63976

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    function PhpUploader()
        {
            $this->Name="AjaxUploaderFiles";
            
            //$cd=dirname($this->GetWebPath(__FILE__));
            
            $cd = "/phpuploader";
            $this->ResourceDirectory="$cd/resources";
            $this->ResourceHandler="$cd/ajaxuploaderresource.php";
            $this->UploadUrl="$cd/ajaxuploaderhandler.php";
            
       
    I think i am geting problem of path in include_phploader.php file
     
  •  09-14-2010, 3:52 AM 63979 in reply to 63978

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Hello Kenneth it is working fine on localhost
     
  •  09-14-2010, 3:53 AM 63980 in reply to 63979

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    http://test_site.local-manufacturing.com/create_project.php
     this is live url on which it is giving javascript warning
     
  •  09-14-2010, 4:39 AM 63985 in reply to 63980

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Hi pandurang,
     
    The uploader get a wrong path in the section below of file "\phpuploader\include_phpuploader.php"
     
    $cd=dirname($this->GetWebPath(__FILE__));
     
    You can write the path directly. For example, in my case the uploader url is "http://localhost/phpuploader/select-multiple-files-upload.php"
     
    So, I change th section above to the below code. the red code is the root url of my site
      
    $cd="http://localhost/phpuploader/phpuploader";
     
    ------------------------------------------------------------------------------------------------
     
    You can open the soure code page(right click the page and select the source  code menu) of http://test_site.local-manufacturing.com/create_project.php
     
    Find section below and adjust the correct path
     
    <script type='text/javascript' src='/phpuploader/ajaxuploaderresource.php?type=script'>
     
    When the path =http://test_site.local-manufacturing.com/phpuploaderajaxuploaderresource.php?type=script
     
    It will work again.
     
    Regards,
     
    ken
  •  09-14-2010, 5:05 AM 63986 in reply to 63985

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Hello Kenneth,
     
    I have used url 
     
    http://test_site.local-manufacturing.com/phpuploader
     
    But still it is not working
     
  •  09-14-2010, 6:39 AM 63988 in reply to 63986

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Hello Kenneth,
    I have tried for all the possible paths but still it is not working
    Please give me solution .
     
     
  •  09-14-2010, 9:09 AM 63992 in reply to 63988

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Dear pandurang,
     
    Please open "\phpuploader\include_phpuploader.php", search the following line:
    $cd=dirname($this->GetWebPath(__FILE__));
    change it to:
    $cd=dirname($_SERVER['SCRIPT_NAME']).'/phpuploader';
    After done, pls try it again.
     
    Thank you for asking
  •  04-15-2011, 8:20 AM 67193 in reply to 63992

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Hi Eric,
     
    I am getting the same error. I am using Asp.Net.
     
    - Shailen 
  •  04-15-2011, 10:08 AM 67194 in reply to 67193

    Re: CuteWebUI_AjaxUploader_Initialize is not defined

    Dear Shailen,
     
    Can you create a testing aspx page and run the following code on your server?
     
    <%@ Page language="c#"%>
    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <html>
    <head>
    </head>
    <body>
    <form id="Form1" method="post" runat="server">
    <CuteWebUI:Uploader runat="server" MultipleFilesUpload="true" ID="Uploader1">
    </CuteWebUI:Uploader>
    <br><br><br>
    <%=Uploader1.GetBrowserType() + ":" + Uploader1.GetBrowserVersion()%>
    <hr/>UserAgent: <%=Context.Request.UserAgent%>
    </form>
    </body>
    </html>
     
    Keep me posted
     
    Thank you for asking
View as RSS news feed in XML