want to show Exact error

Last post 05-18-2009, 2:44 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  05-15-2009, 3:18 AM 52178

    want to show Exact error

    Hi,
     
     In the bellow function msg always returning "undefined" and reason always returning "cancelbutton" but i need to show the exact error How can i do that?
     

    function
    CuteWebUI_AjaxUploader_OnTaskError(obj,msg,reason)

    {

    str=reason;

    // alert(str);

    // alert(msg);

    if(msg==null)msg="File has been cancelled";

    ShowMessage("Error : "+obj.FileName+" : "+msg);

    }
     
    Regards,
    Arun
    Filed under:
  •  05-18-2009, 2:44 AM 52260 in reply to 52178

    Re: want to show Exact error

    Arun,
     
    You will get null msg if the cancel button is clicked.
     
    And the msg/reason has more details if the uploader get more kinds of error.
     
    Regards,
    Terry
View as RSS news feed in XML