Re: global functions not firing

  •  10-21-2010, 8:36 PM

    Re: global functions not firing

    Hi,
     
    The global handler is called by the default instance handler.
     
    If you replace the default instance handler, the global handler will not be called.
     
    So you need do that in the instance handler :
     
    uploader.handlepostback=function()
    {
       var res;
        if(window.CuteWebUI_AjaxUploader_OnPostback)
             res=window.CuteWebUI_AjaxUploader_OnPostback();
        if(res===false)
        {
            ///
        }
        ///
    }
     
    or this style :
     
    var oldhandler=uploader.handlepostback;
    uploader.handlepostback=function()
    {
       var res=oldhandler();
        if(res===false)
        {
            ///
        }
        ///
    }
     
    Regards,
    Terry
     
View Complete Thread