andreyfedoseev / jquery-ocupload Goto Github PK
View Code? Open in Web Editor NEWOne Click Upload - A jQuery Plugin
One Click Upload - A jQuery Plugin
I've pounded my head on this for a week now. Now my only hope is asking you directly! (or any users who is reading this and already knows the answer!)
I've been using ocupload (https://github.com/andreyfedoseev/jquery-ocupload) without issue. Same with jeditable. Then I added JQuery UI so that i could use the sortable feature. However, including JQuery UI causes ocupload not to trigger. jeditable triggers, but not ocupload. Any help would be much appreciated!
Here are the includes:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script> <script src="../Scripts/jquery.ocupload.js" type="text/javascript"></script> <script src="../Scripts/jquery.jeditable.js" type="text/javascript"></script>Here is the snipped code:
$('#MainImg').upload({ // this no longer triggers after including JQuery UI!
});
Here is the HTML:
jquery jquery-ui
i have used this for web application but its not working on Safari browser in Ipad.
once i click camera not open only black screen open.please help me to solve this.
Can possibly be that onComplete is called when the file is actually failed to upload?
Is there a place for onError?
Thanks.
Hi!
First of all, thank you for sharing this plugin.
I am having a problem and I can't figure out what to do.
I have already set a
and within it I am using aWhen I attach the plugin though, the console in chrome throws the following error:
Uncaught TypeError: Cannot read property 'submit' of undefined
and it points to line 80 on the code.
this is all I have on the jQuery:
var myUpload = $('#inputFile').upload();
any ideas?
Thank you in advance!
I noticed that in IE10 the hidden file input is not positioned correctly. When I click on my anchor tag it is not also clicking the Browse button on the file input element.
Do I need to return response in some default manner ?
I am returning it in this manner
echo json_encode(["errors" => $errors, "warnings" => $warnings]);
exit;
While testing on IE7, I noticed that onComplete was not working correctly. In order to fix this issue, you must change the jquery.ocupload.js to the following:
/** Upload iframe */
var iframe = $("<iframe name='iframe" + id + "' id='iframe" + id + "' style='display:none;'></iframe>");
I am getting issue with upload is not working on IE. Please fix it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.