Javascript error when uploading

Last post 07-10-2014, 8:58 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  07-09-2014, 3:55 PM 80377

    Javascript error when uploading

     Hi I am getting the following error when I am trying to upload a file.

     

    I am in the process of converting my app from CuteSoft  to Richtexteditor.  I am not sure if their is a possible conflict with the two editors being in the app.  Only the Richtexteditor is being used on the page .

     

    Below is the error and the  code snipit.    If I ignore the error the upload works.

     

    Thanks for your help. 

     

     

     

    JavaScript runtime error: Unable to get property 'toUpperCase' of undefined or null reference

     

    for(var i=0;i<tasks.length;i++)
    {
    var task=tasks[i];
    var filename=task.FileName;
    if(INSERT_DATE_BEFORE_FILENAME)
    {
    var d=new Date();
    filename=String(d.getFullYear()*10000+(d.getMonth()+1)*100+d.getDate())+"_"+filename;
    }
    task.SetClientData(filename);
    if(usednamemap[filename]||self.finditem(filename))
    indexes.push(i);
    else
    usednamemap[filename]=true;
    }

    Filed under:
  •  07-10-2014, 8:58 AM 80378 in reply to 80377

    Re: Javascript error when uploading

    Hi msinotte,

     

    Can you post your editor page url here? So we can check on it too. Also, you can send it to [email protected]

     

    And please try the example page below on your site, does it get the same error too?

     

    1. <%@ Page Language="c#" ValidateRequest="false" %>  
    2.   
    3. <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>  
    4.   
    5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    6. <html xmlns="http://www.w3.org/1999/xhtml">  
    7. <head runat="server">  
    8. </head>  
    9. <body>  
    10.     <form id="Form1" method="post" runat="server">  
    11.         <RTE:Editor runat="server" ID="Editor1" />  
    12.     </form>  
    13. </body>  
    14. </html>  
     

     

    Regards,

     

    Ken 

View as RSS news feed in XML