Re: Javascript CuteWebUI_AjaxUploader_OnQueueUI - List Count

  •  12-03-2009, 12:38 AM

    Re: Javascript CuteWebUI_AjaxUploader_OnQueueUI - List Count

    Rafael,
     
    For document , please check http://ajaxuploader.com/document/ , That document do not contains some new API
     
    1 - UploadAttachments control extends the server side uploaded items management, in client side, all uploader use same behavior.
     
    2 - you can do this to get the uploader object ,
     
    var uploader;
    function CuteWebUI_AjaxUploader_OnInitialize()
    {
        uploader=this;
        //all uploader will call this function , and you can filter the instance by the uploader.id
        uploader.handlerxxxx=myfunc;
    }
     
    3 - you can hide the buildin cancel button . (server side set CancelButton.Style["display"]="none";)  ,
      and call javascript uploader.cancelupload() at your button's event handler.
     
    Here is the method/event list , you can try it.
     
    uploader.internalobject (property , get the internal object , no document , and may be changed in future)
    uploader.cancelall()
    uploader.cancelupload()
    uploader.browseclick()
    uploader.startbrowse()
    uploader.startupload()
    uploader.setdialogfilter()
    uploader.setresumeoption()
    uploader.hidequeueui()
    uploader.getqueuecount()
    uploader.getitems()
     
    Event List :
     
    CuteWebUI_AjaxUploader_OnXxxxxx or uploader.handlerxxxxx=
     
      ("Postback");
      ("Progress");
      ("QueueUI");
      ("Browse");
      ("Select");
      ("Start");
      ("Stop");
      ("Initialize");
      ("MantleButton");
      ("Error");
      ("TaskStart");
      ("TaskError");
      ("TaskComplete");
     
    ---
     
    You can use uploader.cancelall() to reset the client state. 
     
    Regards,
    Terry
     
View Complete Thread