/trunk/www/js/swfuploadpanel/SwfUploadPanel.js.org |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/SwfUploadPanel.js.org |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/delete.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/delete.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/upload_example.php |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/upload_example.php |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/SwfUploadPanel.css |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/SwfUploadPanel.css |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/add.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/add.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/readme.txt |
---|
New file |
0,0 → 1,16 |
Extension Page : http://www.silverbiology.com/ext_samples/SwfUploadPanel/uploaddemo.php |
Author : Michael Giddens |
v 0.4 (March 6th 2008) |
License : MIT |
There were some changes to the original code. |
The original files are renamed .org so that a comparison can be made. |
Here is the list of changes: |
1. Event handlers were mixed up. I've replied to the forum on this but don't |
know when the author will fix. I've added the fixes in the code. |
2. Added a "Note" column so to display errors when upload fails. This follows |
the UploadDialog so that the same server code can be used. |
3. Return value "success" was not analyzed by the code from the return data |
from the server. Success=false will set the status to Error. |
4. Fixed delete key to delete entries. Also, restricting it to just the |
Delete key and not all the other keys. |
/trunk/www/js/swfuploadpanel/SwfUpload.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/SwfUpload.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/SwfUploadPanel.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/SwfUploadPanel.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/swfupload.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/swfupload.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/swfupload_f8.swf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/swfupload_f8.swf |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/SwfUploadPanel.css |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/SwfUploadPanel.css |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/ext-all.css |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/ext-all.css |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/ind.html |
---|
New file |
0,0 → 1,114 |
<html> |
<head> |
<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"--> |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
<title> |
Ext.ux.SwfUploadPanel Example |
</title> |
<link rel="stylesheet" type="text/css" href="ext-all.css"> |
<script type="text/javascript" src="ext-base.js"> |
</script> |
<script type="text/javascript" src="ext-all.js"> |
</script> |
<!-- Files needed for SwfUploaderPanel --> |
<link rel="stylesheet" type="text/css" href="SwfUploadPanel.css"> |
<script type="text/javascript" src="SwfUploadPanel/SwfUpload.js"> |
</script> |
<script type="text/javascript" src="SwfUploadPanel.js"> |
</script> |
<script> |
Ext.onReady(function() { |
String.prototype.trim = function() { |
return this.replace(/^\s+|\s+$/g,""); |
} |
// Get SessionId from cookie |
var PHPSESSIDX = null; |
var cookies = document.cookie.split(";"); |
Ext.each(cookies, function(cookie) { |
var nvp = cookie.split("="); |
if (nvp[0].trim() == 'PHPSESSID') |
PHPSESSIDX = nvp[1]; |
}); |
var uploader = new Ext.ux.SwfUploadPanel({ |
title: 'Upload Test' |
, renderTo: 'grid' |
, width: 500 |
, height: 300 |
// Uploader Params |
, upload_url: 'http://www.silverbiology.com/ext/plugins/SwfUploadPanel/upload_example.php' |
// , upload_url: 'http://localhost/www.silverbiology.com/ext/plugins/SwfUploadPanel/upload_example.php' |
, post_params: { PHPSESSIDX: PHPSESSIDX } |
, debug: true |
, flash_url: "../../ext/plugins/SwfUploadPanel/swfupload_f9.swf" |
// , single_select: true // Select only one file from the FileDialog |
// Custom Params |
, single_file_select: false // Set to true if you only want to select one file from the FileDialog. |
, confirm_delete: false // This will prompt for removing files from queue. |
, remove_completed: false // Remove file from grid after uploaded. |
}); |
uploader.on('swfUploadLoaded', function() { |
this.addPostParam( 'Post1', 'example1' ); |
}); |
uploader.on('fileUploadComplete', function(panel, file, response) { |
}); |
uploader.on('queueUploadComplete', function() { |
if ( Ext.isGecko ) { |
console.log("Files Finished"); |
} else { |
alert("Files Finished"); |
} |
}); |
var btn = new Ext.Button({ |
text: 'Launch Sample Uploader' |
, renderTo: 'btn' |
, handler: function() { |
var dlg = new Ext.ux.SwfUploadPanel({ |
title: 'Dialog Sample' |
, width: 500 |
, height: 300 |
, border: false |
// Uploader Params |
, upload_url: 'http://www.silverbiology.com/ext/plugins/SwfUploadPanel/upload_example.php' |
// , upload_url: 'http://localhost/www.silverbiology.com/ext/plugins/SwfUploadPanel/upload_example.php' |
, post_params: { id: 123} |
, file_types: '*.jpg' |
, file_types_description: 'Image Files' |
, debug: true |
, flash_url: "../../ext/plugins/SwfUploadPanel/swfupload_f9.swf" |
// , single_select: true // Select only one file from the FileDialog |
// Custom Params |
, single_file_select: false // Set to true if you only want to select one file from the FileDialog. |
, confirm_delete: false // This will prompt for removing files from queue. |
, remove_completed: true // Remove file from grid after uploaded. |
}); // End Dialog |
var win = new Ext.Window({ |
title: 'Window' |
, width: 514 |
, height: 330 |
, resizable: false |
, items: [ dlg ] |
}); // End Window |
win.show(); |
} // End Btn Handler |
}); // end Btn |
}); |
</script> |
<style type="text/css"> |
<!--.style1 { font-weight: bold}body, td, th { font-family: Arial, Helvetica, sans-serif;}body { margin-left: 5px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px;}.style3 {font-size: 10px; font-style: italic;}--> |
</style> |
</head> |
</html> |
/trunk/www/js/swfuploadpanel/test/SwfUpload.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/SwfUpload.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/SwfUploadPanel.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/SwfUploadPanel.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/swfupload.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/swfupload.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/ext-all.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/ext-all.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/test/ext-base.js |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/test/ext-base.js |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/swfupload_f9.swf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/swfupload_f9.swf |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/arrow_up.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/arrow_up.png |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/www/js/swfuploadpanel/example.php |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/www/js/swfuploadpanel/example.php |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |