Re: Using AjaxUploader with jQuery AJAX and ASP.NET

  •  04-21-2009, 8:28 AM

    Re: Using AjaxUploader with jQuery AJAX and ASP.NET

    Hi Terry,
     
    Could you please tell me where I can find some documentation on the custom AJAX tasks?  I've installed V3.0, and I can't seem to find any new documentation.
     
    Most importantly with regards to functionality, I still can't find the file I uploaded on the server once I call CuteWebUI_AjaxUploader_OnPostback to call the page method and stop the page posting postback.  It is definitely calling the server method, and successfully stopping the postback.  My javascript is:

    var
    paramList = "{}";

    function
    CuteWebUI_AjaxUploader_OnPostback() {
       alert($(
    '#ctl00_cphMain_filePhoto').val());
      
    //Call the page method
      
    $.ajax({
          type:
    "POST",
          url:
    'fileuploadtest.aspx/postfile',
          contentType:
    "application/json; charset=utf-8",
          data: paramList,
          dataType:
    "json",
          success: successFn,
          error: errorFn
       });

     

       // Hide the div
       $('#ctl00_cphMain_divFilePhotoNone').hide();

     

       // Stop the postback
       return false;
    }

    Help! 
View Complete Thread