最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jquery.fileupload.js:87 Uncaught TypeError: $.widget is not a function on jQuery-file-upload - Stack Overflow

programmeradmin2浏览0评论

I tried to use basic example (source) for jquery-file-upload, files that I've included in my html are:

jquery.js
bootstrap.css
bootstrap.js

jquery.fileupload.css
jquery.iframe-transport.js
jquery.fileupload.js

Is there anything else that I should include to properly use jquery-file-upload?

My app doesn't need to use jquery-ui. If jquery-ui is really a dependency to jquery-file-upload, is there any workaround to use it without jquery-ui?

I tried to use basic example (source) for jquery-file-upload, files that I've included in my html are:

jquery.js
bootstrap.css
bootstrap.js

jquery.fileupload.css
jquery.iframe-transport.js
jquery.fileupload.js

Is there anything else that I should include to properly use jquery-file-upload?

My app doesn't need to use jquery-ui. If jquery-ui is really a dependency to jquery-file-upload, is there any workaround to use it without jquery-ui?

Share Improve this question asked Apr 20, 2015 at 4:23 KokizzuKokizzu 26.8k39 gold badges148 silver badges253 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 13

Nevermind, I should have read this first. Only jquery-ui.widget.js required, not whole jquery-ui.

The order in which

<script src="js/vendor/jquery.ui.widget.js"></script>
<script src="js/jquery.iframe-transport.js"></script>
<script src="js/jquery.fileupload.js"></script>

are loaded also matters.

jquery.js
jquery.ui.widget.js
jquery.iframe-transport.js
jquery.fileupload.js

and finally

$('#input').fileupload() // and U is lower case !!!!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论