网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 jquery uploadify 在ff下无效的解决办法
范文
    js代码
    代码如下:
    $('#file_upload').uploadify({
    buttonimage: '${ctx }/commons/uploaddify/img/browse-btn.png',
    swf :'${ctx }/commons/uploaddify/uploadify.swf',
    uploader :'../servlet/defaultdispatcher;jsessionid=${pagecontext.session.id}?__action=xxx',
    filetypeexts: '*.jpg;*.png;*.gif;*.bmp',
    filetypedesc: '图像文件',
    formdata: {
    timestamp: new date().gettime()
    },
    onselect: function(file){
    //重写校验
    },
    onuploadprogress: function(file,bytesuploaded,bytestotal,totalbytesuploaded,totalbytestotal){
    $('#pregress').html('总共需要上传'+bytestotal+'字节,'+'已上传'+totalbytestotal+'字节');
    },
    onuploadsuccess: function(file){
    //上传成功
    }
    });
    参考网上解决方案,在uploader路径后面增加jsessionid就好。
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/13 8:51:11