美元.widget是一个不带blueimp的功能,jQuery文件上传断断续续
$.widget is not a function with blueimp jQuery file uploader intermittent
我正在尝试使用blueimp的jQuery文件上传。我应该有本页链接的所有要求。我没有看到任何文件加载错误。发生的事情是,文件上传按钮间歇性地不工作,Firebug抛出以下错误:
TypeError: $.widget is not a function
$.widget('blueimp.fileupload', {
jquery....load.js (line 87)
TypeError: $(...).fileupload is not a function
$('#pdf-upload')
我不确定是什么原因导致这个错误间歇性。
头:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/jscripts/gen_functions.js"></script>
<script type="text/javascript" src="/jscripts/validation.js"></script>
<script type="text/javascript" src="/jscripts/selectbox.js"></script>
<script type="text/javascript" src="/jscripts/admin_products.js"></script>
<script type="text/javascript" src="/mainhold/6DKkzyUpi/ckeditor.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="/jscripts/qfax-events-admin.js"></script>
<!--Google Analytics Code Here -->
<!--- eg the below link would only show on the index page
<link rel="canonical" href="" />
--->
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>
页脚:
<script type="text/javascript">
jQuery( document ).ready( function( $ ) {
var $currentPaymentDiv = $('#check-payment');
$('#pdf-upload')
.fileupload( {
'url' : $('#fileupload').data( "url" ),
'dataType' : "json",
'done' : function( e, data ) {
data = data.result;
if( data.success ) {
if( data.rows instanceof Array ) {
for( var i=0, length=data.rows.length; i<length; i++ ) {
var row = data.rows[ i ];
if( row.success ) {
$('#no-pdfs').hide();
$('#case-pdf-header').after(
'<tr><td class="tabledata" valign="top">'+
'<a class="delete-pdf" href="'+row.delete_url+'"><i class="fa fa-times"></i> | '+
'<a class="edit-pdf" href="'+row.edit_url+'"><i class="fa fa-edit"></i>'+
'</td>'+
'<td class="tabledata" valign="top"><a href="'+row.view_url+'">'+row.filename+'</a></td>'+
'<td class="tabledata" valign="top">'+row.sent+'</td>'+
'<td class="tabledata" valign="top">'+row.modified+'</td>'+
'<td class="tabledata" valign="top">'+row.created+'</td>'+
'<td class="tabledata" valign="top">'+row.login_staffname+'</td></tr>'
);
}
else {
alert( "Error uploading. "+row.message );
}
}
}
}
else {
alert( "Error uploading. "+data.message );
}
//console.log( data );
}
} );
} );
</script>
<script src="/jscripts/jQuery-File-Upload-9.11.2/js/jquery.iframe-transport.js"></script>
<script src="/jscripts/jQuery-File-Upload-9.11.2/js/jquery.fileupload.js"></script>
<!--[if (gte IE 8)&(lt IE 10)]>
<script src="/jscripts/jQuery-File-Upload-9.11.2/js/cors/jquery.xdr-transport.js"></script>
<![endif]--></td>
</tr>
</table>
</td>
</tr>
</table>
<br /><br /><br /><br />
<br /><br /><br /><br />
</body>
是什么修复它是把CKEDITOR 后的 jQuery包括。
导致的标题:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/jscripts/gen_functions.js"></script>
<script type="text/javascript" src="/jscripts/validation.js"></script>
<script type="text/javascript" src="/jscripts/selectbox.js"></script>
<script type="text/javascript" src="/jscripts/admin_products.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="/mainhold/6DKkzyUpi/ckeditor.js"></script>
<script type="text/javascript" src="/jscripts/qfax-events-admin.js"></script>
<!--Google Analytics Code Here -->
<!--- eg the below link would only show on the index page
<link rel="canonical" href="" />
--->
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>
相关文章:
- 如何将chrome扩展功能移植到移动设备(特别是jquery和trello)
- jQuery滚动功能只工作一次
- JQuery使用相同的功能自动完成各种输入文本
- jQuery自动完成功能不适用于多个文本输入
- 这个jquery语法的功能是什么
- 如何使用javascript/jquery更改转义键的功能
- 使用Jquery创建一个具有单击和悬停功能的菜单
- 屏幕大小调整功能-Jquery
- 使用复杂数组时Jquery自动完成功能不起作用
- jQuery点击操作被排序功能剥离
- Angular JS和jQuery UI自动完成功能
- 检查jquery(或ajax)功能是否已完成
- 计时器在使用 jQuery 一分钟后没有触发,或者每 1 分钟后给出一些其他解决方案来触发功能
- 必须单击按钮两次才能执行功能 - jQuery
- 可以't在我的HTML表中显示第三列(向下搜索功能jQuery/JavaScript)
- 传递点击事件到功能- JQuery切换无序列表中的孩子
- 淡入淡出功能Jquery
- 禁用然后重新启用点击功能jQuery
- 更改按钮功能jQuery
- 试图添加更多的jQuery到我的页面,但当我添加更多的链接/脚本标签,以前的功能jQuery停止运行.有人能帮帮我吗?