Ajax Upload using valums ajax upload plugin inside a form.
        Posted  
        
            by idrish
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by idrish
        
        
        
        Published on 2010-02-09T06:52:36Z
        Indexed on 
            2010/06/05
            18:22 UTC
        
        
        Read the original article
        Hit count: 548
        
Hi , i just came across this ajax upload plugin and i wish to use it inside a form as shown in the demo page example 3. For some reason i am not able to make it work. I am not sure what parameters come into the function. For example here is my sample code.
$(document).ready(function(){
        var upload = new AjaxUpload('property_i',
        {
        action: 'submitproperty.php',
        autoSubmit: false,
        onSubmit : function(file , extension){
        return false;
        }
        });
        var upload_data = upload.setData({
        'propertytype':'propertytype'
        });
       });
Now the ID used in the AjaxUpload function should be ID of the or of the Entire form. Also how do i use setData method. Any suggestions or links will be very helpful. Thanks
© Stack Overflow or respective owner