怎么在jquery.uploadify.v2.1.0中的初始化添加一个初始化参数
jQuery(this).each(function(){
settings = jQuery.extend({
id             : jQuery(this).attr('id'), // The ID of the object being Uploadified
uploader       : 'uploadify.swf', // The path to the uploadify swf file
script         : 'uploadify.php', // The path to the uploadify backend upload script
expressInstall : null, // The path to the express install swf file
folder         : '', // The path to the upload folder
height         : 30, // The height of the flash button
width          : 110, // The width of the flash button
cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container
wmode          : 'opaque', // The wmode of the flash file
scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains
fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script
method         : 'POST', // The method for sending variables to the backend upload script
queueSizeLimit : 999, // The maximum size of the file queue
simUploadLimit : 1, // The number of simultaneous uploads allowed
queueID        : true, // The optional ID of the queue container
displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item
onInit         : function() {}, // Function to run when uploadify is initialized
onSelect       : function() {}, // Function to run when a file is selected
onQueueFull    : function() {}, // Function to run when the queue reaches capacity
onCheck        : function() {}, // Function to run when script checks for duplicate files on the server
onCancel       : function() {}, // Function to run when an item is cleared from the queue
onError        : function() {}, // Function to run when an upload item returns an error
onProgress     : function() {}, // Function to run each time the upload progress is updated
onComplete     : function() {}, // Function to run when an upload is completed
onAllComplete  : function() {}  // Functino to run when all uploads are completed
}, options);
我想在里边添加一个flag参数,使他能在java里边获取到他的参数jQueryjava

解决方案 »

  1.   

    'onUploadStart': function (file) {
                    var curObj = getDataJson();
                    /*附加参数 formData*/
                    $('#' + cid).uploadify('settings', 'formData', { 'uid': curObj.uid, 'uname': curObj.uname, 'pub': curObj.pub, 'rType': curObj.rType, 'userid': curObj.userid, 'year': curObj.year });onUploadStart事件里加
      

  2.   

    不好意思 没注意 楼主是v 2的http://q.cnblogs.com/q/41191/
      

  3.   

    我才刚发完帖子,我就解决了,都不是在你们说的哪里加,在初始化方法里边有个json,走里面加就能在java里边获取到了,不过得谢谢你们