function ajaxFileUpload(){
jQuery.ajaxFileUpload(
{
url:'<%=upload%>',
secureuri:false,
fileElementId:'filetest',
dataType: 'text',
success: function (data, status)
{
var divfile=document.createElement("DIV");
divfile.html=data;
document.getElementById("filewindow").appendChild(divfile);
},
error: function (data, status, e)
{
alert(data);
}
}
)
}
插件不错!挺好用的!~
插件代码 (复制下来!新建js文件粘贴即可):
jQuery.extend({
createUploadIframe: function(id, uri)
{
//create frame
var frameId = 'jUploadFrame' + id;
var iframeHtml = '