I'm using a jquery plugin located here file-upload
I can get the example located in the plugin folder to work. However when I try to integrate the plugin into my website I keep getting the following error in the console:
attempt to run compile-and-go script on a cleared scope jquery.min.js(line2)
Failed to load source for: http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
In the script tab of the console it's got a break notification with:
JSON.parse
I've not come across this error before so I'm not too sure where to start...
edit
Thanks for replies so far, okay I've got it work without errors appearing in the console now. In application.js I used this instead:
$(function () {
$('#fileupload').fileupload({
dataType: 'json',
url: 'upload.php',
done: function (e, data) {
$.each(data.result, function (index, file) {
$('<p/>').text(file.name).appendTo('body');
});
}
});
});
I haven't moved the files outside of their plugin folder.
I can see that the files have been uploaded to the folder. When I click to start the upload process for a split second I see two progress bars, the one along the bottom will disappear on completion. However there is another progress bar next to the thumbnail which doesn't disappear and stays stuck at 90%, the cancel button will also remain and become unresponsive. I don't see the trash can either.
Given that the files uploaded okay, do you think this could be a CSS issue?
The stuck progress bar class:
ui-progressbar ui-widget ui-widget-content ui-corner-all