colonymech / docs / www / colonyscout / internal / uploadify / uploadify-movedQueue.php @ f59acf11
History | View | Annotate | Download (1.65 KB)
1 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
---|---|
2 |
<head>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
4 |
<title>Uploadify Move the Queue Sample</title> |
5 |
|
6 |
<link rel="stylesheet" href="uploadify/uploadify.css" type="text/css" /> |
7 |
|
8 |
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> |
9 |
<script type="text/javascript" src="js/jquery.uploadify.js"></script> |
10 |
|
11 |
<script type="text/javascript"> |
12 |
|
13 |
|
14 |
$(document).ready(function() {
|
15 |
$("#fileUpload").fileUpload({
|
16 |
'uploader': 'uploadify/uploader.swf',
|
17 |
'cancelImg': 'uploadify/cancel.png',
|
18 |
'script': 'uploadify/upload.php',
|
19 |
'folder': 'files',
|
20 |
'multi': true,
|
21 |
'displayData': 'percentage',
|
22 |
|
23 |
/* onInit: function (){
|
24 |
$(this).css('display','none');
|
25 |
if ($.browser.msie) {
|
26 |
$(this).after('<div id="' + $(this).attr("id") + 'Uploader"></div>');
|
27 |
document.getElementById($(this).attr("id") + 'Uploader').outerHTML = flashElement;
|
28 |
} else {
|
29 |
$(this).after(flashElement);
|
30 |
}
|
31 |
$("#customspot").after('<div id="' + $(this).attr('id') + 'Queue" class="fileUploadQueue"></div>');
|
32 |
return false;
|
33 |
}
|
34 |
*/ });
|
35 |
});
|
36 |
|
37 |
</script>
|
38 |
</head>
|
39 |
|
40 |
<body>
|
41 |
<div style="float:left"> |
42 |
<fieldset style="border: 1px solid #CDCDCD; padding: 8px; padding-bottom:0px; margin: 8px 0; width:450px"> |
43 |
<legend><strong>Upload Files - movedQueue Sample</strong></legend> |
44 |
<div id="fileUpload">You have a problem with your javascript</div> |
45 |
<a href="javascript:$('#fileUpload').fileUploadStart()">Start Upload</a> | <a href="javascript:$('#fileUpload').fileUploadClearQueue()">Clear Queue</a> |
46 |
<p></p> |
47 |
</fieldset>
|
48 |
</div>
|
49 |
<div style="float:left; margin-left:20px"> |
50 |
<div id="customspot"></div> |
51 |
</div>
|
52 |
</body>
|
53 |
</html>
|