jquery.uploadify上传图片,用IE浏览器上传没问题,但换成其他浏览器就不对了,还不能跳转方法!急!!代码$("#uploadify").uploadify({
'uploader': pageContext+'/manager/js/framework/jquery.uploadify/swf/uploadify.swf',
'script': 'bbsNoteAction!deleteproductsImgdasda.action?account.id='+$("#ids").val(),
'cancelImg': pageContext+'/manager/js/framework/jquery.uploadify/img/cancel.png',
'queueID' : 'fileQueue', // 和存放队列的DIV的id一致
'fileDataName': 'file', // 必须,和以下input的name属性一致
'auto': false, // 是否自动开始
'folder': 'old',//上传文件存放的目录
'multi': false, // 是否支持多文件上传
'buttonText': 'select file', // 按钮上的文字
'fileDesc': '请选择jpg,gif文件', // 如果配置了以下的'fileExt'属性,那么这个属性是必须的
'fileExt': '*.jpg;*.gif',// 允许的格式
'onSelect': function(e, queueId, fileObj)
{
$("#fileUpload").show();
},
'onCancel': function(e, queueId, fileObj) //点击上传文件后面的删除图片时触发
{
$("#fileUpload").hide();
},
'onComplete':function (event, queueID, fileObj, response, data)
{
$("#fileUpload").hide();
alert(response);
if("1"==response){
alert("图片上传失败,CID为空");
}else{
$("#addImgTd").hide();
$("#productImage1Src").attr("src",getRootPathsssss()+"/"+response);
$("#productImage1").val(response);
$("#deleteImgTd").show();
$("#imagePathId").val(response);
$("#deleteImgLink").show();
//alert("图片上传成功");
}
}
});
'uploader': pageContext+'/manager/js/framework/jquery.uploadify/swf/uploadify.swf',
'script': 'bbsNoteAction!deleteproductsImgdasda.action?account.id='+$("#ids").val(),
'cancelImg': pageContext+'/manager/js/framework/jquery.uploadify/img/cancel.png',
'queueID' : 'fileQueue', // 和存放队列的DIV的id一致
'fileDataName': 'file', // 必须,和以下input的name属性一致
'auto': false, // 是否自动开始
'folder': 'old',//上传文件存放的目录
'multi': false, // 是否支持多文件上传
'buttonText': 'select file', // 按钮上的文字
'fileDesc': '请选择jpg,gif文件', // 如果配置了以下的'fileExt'属性,那么这个属性是必须的
'fileExt': '*.jpg;*.gif',// 允许的格式
'onSelect': function(e, queueId, fileObj)
{
$("#fileUpload").show();
},
'onCancel': function(e, queueId, fileObj) //点击上传文件后面的删除图片时触发
{
$("#fileUpload").hide();
},
'onComplete':function (event, queueID, fileObj, response, data)
{
$("#fileUpload").hide();
alert(response);
if("1"==response){
alert("图片上传失败,CID为空");
}else{
$("#addImgTd").hide();
$("#productImage1Src").attr("src",getRootPathsssss()+"/"+response);
$("#productImage1").val(response);
$("#deleteImgTd").show();
$("#imagePathId").val(response);
$("#deleteImgLink").show();
//alert("图片上传成功");
}
}
});
然后注意flash上传的sessionid的问题,具体请自行百度
然后就是是sessionid的问题,自己百度解决方法