How do I handle the events for 2 CuteWebUI:UploadAttachments on the same page

Last post 05-31-2009, 9:48 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  05-28-2009, 11:14 AM 52602

    How do I handle the events for 2 CuteWebUI:UploadAttachments on the same page

    Hello
    I have a page with 2 ajax uploaders,
    I am creating different ui Elements depending on the control that is uploading
    I need to distinguish those javascript events for each uploader as the code handled in those events will deal with different elements on the page
    function CuteWebUI_AjaxUploader_OnStart()
    function CuteWebUI_AjaxUploader_OnQueueUI(list)
    function CuteWebUI_AjaxUploader_OnProgress(enable,filename,begintime,uploadedsize,totalsize)
     
    Please advice thank you
  •  05-31-2009, 9:48 PM 52667 in reply to 52602

    Re: How do I handle the events for 2 CuteWebUI:UploadAttachments on the same page

    Hi,
     
    There's two solutions .
     
    #1 Use global event function , use 'this' to get the uploader , and check the value of this.id
     
    #2 please check http://ajaxuploader.com/document/scr/JavaScript-API.htm , use the instance event .
     
    Regards,
    Terry
     
View as RSS news feed in XML