Permalink
Browse files

Minor fixes for wrapper size (prevents loading on Mac). Added more do…

…cumentation.
  • Loading branch information...
Harald Kirschner
Harald Kirschner committed Oct 17, 2008
1 parent 084ae68 commit 088ff722f06672dc4b7105b479d9aada2afcb46e
View
@@ -0,0 +1 @@
+*.log
@@ -1,10 +1,11 @@
{
- "title": "Queued Photo Uploader",
- "description": "Creating a nice looking upload queue, including animated progress bars.",
+ "title": "Queued Photo Uploader (Fixed)",
+ "locked": true,
+ "description": "Showcase with FancyUpload preview version.",
"files": [
- "mootools-trunk.js",
- "../../source/Swiff.Uploader.js",
- "../../source/Fx.ProgressBar.js",
- "../../source/FancyUpload2.js"
+ "mootools-1.2-core-nc.js",
+ "../../source-fixed/Swiff.Uploader.js",
+ "../../source-fixed/Fx.ProgressBar.js",
+ "../../source-fixed/FancyUpload2.js"
]
}
@@ -1,16 +1,20 @@
window.addEvent('load', function() {
+ // For testing, showing the user the current Flash version.
+ document.getElement('h3 + p').appendText(' Detected Flash ' + Browser.Plugins.Flash.version + '!');
+
var swiffy = new FancyUpload2($('demo-status'), $('demo-list'), {
- debug: true, // using console.log
url: $('form-demo').action,
fieldName: 'photoupload',
- path: '../../source/Swiff.Uploader.swf',
+ path: '../../source-fixed/Swiff.Uploader.swf',
limitSize: 2 * 1024 * 1024, // 2Mb
- target: 'demo-browse',
onLoad: function() {
$('demo-status').removeClass('hide');
$('demo-fallback').destroy();
- }
+ },
+ // The changed parts!
+ debug: true, // enable logs, uses console.log
+ target: 'demo-browse' // the element for the overlay (Flash 10 only)
});
/**
@@ -21,11 +25,16 @@ window.addEvent('load', function() {
/**
* Doesn't work anymore with Flash 10: swiffy.browse();
* FancyUpload moves the Flash movie as overlay over the link.
+ * (see opeion "target" above)
*/
swiffy.browse();
return false;
});
+ /**
+ * The *NEW* way to set the typeFilter, since Flash 10 does not call
+ * swiffy.browse(), we need to change the type manually before the browse-click.
+ */
$('demo-select-images').addEvent('change', function() {
var filter = null;
if (this.checked) {
@@ -1,43 +0,0 @@
-SUCCESS - ***: antje-2.jpg - 1826478 byte
-SUCCESS - ***: antje-1.jpg - 1328070 byte
-FAILED - ***: ANTRAG_Abschlussarbeit.pdf - 36728 byte
-SUCCESS - ***: antje-1.jpg - 1328070 byte
-SUCCESS - ***: antje-3.jpg - 1505538 byte
-FAILED - ***: CaravanRhythm.pdf - 44625 byte
-FAILED - ***: 0,5587,5002090,00.pdf - 116595 byte
-FAILED - ***: AJAX in Widgets and Web UIs.pdf - 75771 byte
-FAILED - ***: arrow-down.png - 297 byte
-FAILED - ***: arrow-up.png - 298 byte
-FAILED - ***: btns.gif - 722 byte
-FAILED - ***: CaravanLead.pdf - 31354 byte
-FAILED - ***: 0,5587,5002090,00.pdf - 116595 byte
-FAILED - ***: AJAX in Widgets and Web UIs.pdf - 75771 byte
-FAILED - ***: arrow-down.png - 297 byte
-FAILED - ***: arrow-up.png - 298 byte
-FAILED - ***: google_custom_search_watermark.gif - 1367 byte
-FAILED - ***: 0,5587,5002090,00.pdf - 116595 byte
-FAILED - ***: AJAX in Widgets and Web UIs.pdf - 75771 byte
-FAILED - ***: arrow-down.png - 297 byte
-FAILED - ***: arrow-up.png - 298 byte
-FAILED - ***: btns.gif - 722 byte
-FAILED - ***: CaravanLead.pdf - 31354 byte
-FAILED - ***: CaravanRhythm.pdf - 44625 byte
-SUCCESS - ***: cocolanuit.jpg - 177938 byte
-FAILED - ***: Eskobar - Someone New 2.txt - 2637 byte
-FAILED - ***: Eskobar - Someone New.txt - 3653 byte
-FAILED - ***: google_custom_search_watermark.gif - 1367 byte
-FAILED - ***: 0,5587,5002090,00.pdf - 116595 byte
-FAILED - ***: AJAX in Widgets and Web UIs.pdf - 75771 byte
-FAILED - ***: arrow-down.png - 297 byte
-FAILED - ***: arrow-up.png - 298 byte
-FAILED - ***: google_custom_search_watermark.gif - 1367 byte
-FAILED - ***: 0,5587,5002090,00.pdf - 116595 byte
-FAILED - ***: AJAX in Widgets and Web UIs.pdf - 75771 byte
-FAILED - ***: arrow-down.png - 297 byte
-FAILED - ***: arrow-up.png - 298 byte
-FAILED - ***: Desktop.ini - 78 byte
-FAILED - ***: Otto Waalkes - 01 - Hipp - Hipp - Hurra.mp3 - 563035 byte
-FAILED - ***: Otto Waalkes - 01 - Hipp - Hipp - Hurra.mp3 - 563035 byte
-FAILED - ***: Otto Waalkes - 01 - Hipp - Hipp - Hurra.mp3 - 563035 byte
-SUCCESS - ***: Hintergrund.jpg - 149411 byte
-SUCCESS - ***: Hintergrund.jpg - 149411 byte
View
@@ -1,7 +1,7 @@
/**
* FancyUpload - Flash meets Ajax for powerful and elegant uploads.
*
- * @version 2.0.1
+ * @version 2.1
*
* @license MIT License
*
View
@@ -63,8 +63,10 @@ Swiff.Uploader = new Class({
this.box = new Element('div', {
styles: {
position: 'absolute',
+ visibility: 'visible',
+ zIndex: 9999,
overflow: 'hidden',
- height: 10, width: 10,
+ height: 15, width: 15,
top: scroll.y, left: scroll.x
}
});

0 comments on commit 088ff72

Please sign in to comment.