You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/events-s3.jmd
+1-23Lines changed: 1 addition & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,7 @@ in Fine Uploader S3, unless otherwise noted here.
20
20
21
21
### Syntax
22
22
23
-
There is a significant difference in the way events are defined between the jQuery and non-jQuery uploaders.
24
-
25
-
When using the non-jQuery version, events are defined as functions in the `callbacks` option object.
26
-
27
-
There are two things to keep in mind when using the jQuery plugin version. First, event handlers are defined by calling the [jQuery `.on()`](http://api.jquery.com/on/) function which will bind a function to an event. Secondly, event handler parameters are passed an extra [jQuery `Event`](http://api.jquery.com/category/events/event-object/) object. If using the jQuery plugin, this Event object will precede all arguments listed.
28
-
29
-
See the [Integrating jQuery](../integrating/jquery) page for code examples and more details.
30
-
31
-
#### non-jQuery
32
-
33
-
When using the non-jQuery uploader, the following syntax is the correct way to define event handlers;
23
+
The following syntax is the correct way to define event handlers:
34
24
35
25
```
36
26
callbacks: {
@@ -43,18 +33,6 @@ callbacks: {
43
33
}
44
34
```
45
35
46
-
#### jQuery
47
-
48
-
The syntax below is only acceptable when using the jQuery plugin for the uploader:
Copy file name to clipboardExpand all lines: docs/api/events.jmd
+1-23Lines changed: 1 addition & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,7 @@ Fine Uploader.
32
32
33
33
### Syntax
34
34
35
-
There is a significant difference in the way events are defined between the jQuery and non-jQuery uploaders.
36
-
37
-
When using the non-jQuery version, events are defined as functions in the `callbacks` option object.
38
-
39
-
There are two things to keep in mind when using the jQuery plugin version. First, event handlers are defined by calling the [jQuery `.on()`](http://api.jquery.com/on/) function which will bind a function to an event. Secondly, event handler parameters are passed an extra [jQuery `Event`](http://api.jquery.com/category/events/event-object/) object. If using the jQuery plugin, this Event object will precede all arguments listed.
40
-
41
-
See the [Integrating jQuery](../integrating/jquery.html) page for code examples and more details.
42
-
43
-
#### non-jQuery
44
-
45
-
When using the non-jQuery uploader, the following syntax is the correct way to define event handlers:
35
+
The following syntax is the correct way to define event handlers:
46
36
47
37
```
48
38
callbacks: {
@@ -55,18 +45,6 @@ callbacks: {
55
45
}
56
46
```
57
47
58
-
#### jQuery
59
-
60
-
The syntax below is only acceptable when using the jQuery plugin for the uploader:
If you are not utilizing jQuery, you can use the plain javascript DnD module. Here is a simple example:
140
+
## Simple Example
143
141
144
142
```javascript
145
143
var dragAndDropModule = new qq.DragAndDrop({
@@ -166,42 +164,6 @@ var dragAndDropModule = new qq.DragAndDrop({
166
164
});
167
165
```
168
166
169
-
## jQuery Example
170
-
171
-
For jQuery users, a jQuery-wrapped DnD module is also available in the combined and minified Fine Uplpoader javascript file.
172
-
This jQuery wrapper follows the same conventions as the jQuery plug-in that wraps the uploader library. To read more
173
-
about these conventions, please see the [Using jQuery plug-in]({{ URL_ROOT }}/integrating/modes/using-jquery-plugin.html) readme document.
174
-
175
-
There are a couple things to be aware of when using the DnD standalone module via the jQuery plug-in wrapper:
176
-
* The only API method available is `dispose`. This restriction is in place since the other API functions don't really make sense in the context of a jQuery plug-in.
177
-
* The target of your plug-in instance takes the place of the `dropZoneElements` option. Do not pass a `dropZoneElements` option, it will be ignored.
178
-
179
-
Here is the above example rewritten using the jQuery plug-in wrappers:
180
-
181
-
```javascript
182
-
$('#myDropZone').fineUploaderDnd({
183
-
classes: {
184
-
dropActive: "cssClassToAddToDropZoneOnEnter"
185
-
}
186
-
})
187
-
.on('processingDroppedFiles', function(event) {
188
-
//TODO: display some sort of a "processing" or spinner graphic
0 commit comments