JQuery 异步文件上传有哪些写好的工具? 其实不是很明白,通过异常iframe,那么一个文件没上传结束,下一个文件上传可以吗?顺便问下,有哪些框架~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 [url=http://www.phptogether.com/uploadifydoc/]jquery.Uploadify[/code]这个不错 uploadify这个不错 Ajax.FileUpload = function (url, fileId, SuccessDo) { var imageLoad; var imageLoadParent; var myform = document.createElement("form"); myform.style.display = "none"; myform.action = url; myform.enctype = "multipart/form-data"; myform.method = "post"; var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase()); if (is_chrome && document.getElementById(fileId).value == '') return; //Chrome bug onchange cancel if (document.all || is_chrome) {// IE imageLoad = document.getElementById(fileId); imageLoadParent = document.getElementById(fileId).parentNode; myform.appendChild(imageLoad); document.body.appendChild(myform); } else { //FF imageLoad = document.getElementById(fileId).cloneNode(true); myform.appendChild(imageLoad); document.body.appendChild(myform); } $(myform).ajaxSubmit({ success: function (responseText) { //这里请对应修改上传文件返回值,不要轻易把我删掉 var res = responseText.split('|'); alert(res[1]); if (res[0] == 1) { $(".k-close").click(); $(".k-window,.k-overlay").remove(); SuccessDo(); } } });} '*.superclass.constructor' 为空或不是对象(报的错误) 对于IE6不兼容,我采取的解决方案,老总不认同 HELP: JavaScript对null的处理? 有谁能帮我解释一下这个JS?? 从一段文字当中选出一些不固定的文字,所选的文字头尾均固定,多谢指教,谢谢!! 网页互传数据问题,谢谢 如何实现将鼠标移动到某一点,然后执行左健点击的功能 请问如何获得一个form元素在form中的index 哪位高人能帮我把下面的程序看看!!谢谢 JS 一个关于数值奇怪的问题,求大神指点 关于js 函数的一点疑问? 跪求解释 jquery 中的$.post 在ie下不起作用为什么?
var imageLoad;
var imageLoadParent;
var myform = document.createElement("form");
myform.style.display = "none";
myform.action = url;
myform.enctype = "multipart/form-data";
myform.method = "post"; var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase());
if (is_chrome && document.getElementById(fileId).value == '')
return; //Chrome bug onchange cancel
if (document.all || is_chrome) {// IE
imageLoad = document.getElementById(fileId);
imageLoadParent = document.getElementById(fileId).parentNode;
myform.appendChild(imageLoad);
document.body.appendChild(myform);
}
else { //FF
imageLoad = document.getElementById(fileId).cloneNode(true);
myform.appendChild(imageLoad);
document.body.appendChild(myform);
}
$(myform).ajaxSubmit({
success: function (responseText) {
//这里请对应修改上传文件返回值,不要轻易把我删掉
var res = responseText.split('|');
alert(res[1]);
if (res[0] == 1) {
$(".k-close").click();
$(".k-window,.k-overlay").remove();
SuccessDo();
}
}
});
}