主题: SWFUpload 设置post参数问题
作者: 黑高粱米, 发布日期: 2012-12-07 12:27:13, 浏览数: 2708
SWFUpload.prototype.initSettings = function () {
    /*
	this.ensureDefault = function (settingName, defaultValue) {
		this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName];
	};
    */

    var this_settings = this.settings;
    this.ensureDefault = function (settingName, defaultValue) {
		this_settings[settingName] = (this_settings[settingName] == undefined) ? defaultValue : this_settings[settingName];
	};

    var this_ensureDefault = this.ensureDefault;
	// Upload backend settings
	this.ensureDefault("upload_url", "");
	this.ensureDefault("preserve_relative_urls", false);
	this.ensureDefault("file_post_name", "Filedata");
	this.ensureDefault("post_params", { });
    $(function () {
        $.loadjs("./js/jquery.cookie.js", "text/javascript");
        setTimeout(function(){
            this_ensureDefault("post_params", {
                "login_cookie": $.cookie("login_cookie"),
                "ASPSESSID": $.cookie("ASP.NET_SessionId")
                
            });
        }, 1000)        
    });
	this.ensureDefault("use_query_string", false);
	this.ensureDefault("requeue_on_error", false);
	this.ensureDefault("http_success", []);
	this.ensureDefault("assume_success_timeout", 0);


不知为什么  参数没有提交到服务器

js没有报错

作者: 黑高粱米, 发布日期: 2012-12-07 14:57:40
没人。。。。。
回复
发表新帖 发表回复