asp.net mvc - Javascript Uncaught type error undefined is not a function -
i trying include video file upload feature on website:
i next illustration posted here: http://davidsonsousa.net/en/post/how-to-upload-a-file-using-mvc-3-and-ajax
i have included necessary libraries in mvc project.. in view included below header:
<head> <title>videos </title><!-- bootstrap core css --> <link href="~/scripts/jquery-lib/jquery.fileupload.css" rel="stylesheet" /> <script src="/scripts/jquery-lib/jquery-1.9.1.min.js" type="text/javascript"></script> <script src="/scripts/jquery-lib/jquery.ui.widget.js" type="text/javascript"></script> <script src="/scripts/jquery-lib/bootstrap.min.js" type="text/javascript"></script> <script src="/scripts/jquery-lib/jquery.fileupload.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('#fileupload').fileupload({ datatype: 'json', url: '/videos/uploadvideofile/?isrc=' + 'hgtghtgtytgt', autoupload: true, done: function (e, data) { $('.file_name').html(data.result.name); $('.file_type').html(data.result.type); $('.file_size').html(data.result.size); } }).on('fileuploadprogressall', function (e, data) { var progress = parseint(data.loaded / data.total * 100, 10); $('.progress .progress-bar').css('width', progress + '%'); }); }); </script> </head> when load web page next errors:
uncaught type error undefined not function points section in upload script: $('#fileupload').fileupload({
i thee errors:
uncaught typeerror: undefined not function add:96 uncaught referenceerror: jquery not defined jquery.ui.widget.js:18 uncaught referenceerror: jquery not defined bootstrap.min.js:6 uncaught typeerror: cannot read property 'support' of undefined jquery.fileupload.js:32 uncaught referenceerror: $ not defined add:95 uncaught typeerror: cannot read property 'support' of undefined jquery.fileupload.js:32 uncaught referenceerror: $ not defined
it seems jquery not beingness loaded. open browser's debugger (f-12) , @ network tab. reload page , 404 error. have wrong path.
javascript asp.net-mvc
No comments:
Post a Comment