<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for fraktalisman</title><link>http://disqus.com/by/fraktalisman/</link><description></description><atom:link href="http://disqus.com/fraktalisman/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 24 Feb 2009 09:48:13 -0000</lastBuildDate><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-6570105</link><description>&lt;p&gt;	initialize: function(status, list, options) {&lt;br&gt;		// existing stuff ...&lt;br&gt;		this.files = [];&lt;br&gt;		this.zuloeschen = []; // new Array for invalid files, needed because of IE-bug&lt;br&gt;		// more existing stuff ...&lt;/p&gt;&lt;p&gt;	onSelect: function(file, index, length) {&lt;br&gt;		// see above ...&lt;br&gt;		if (!&lt;a href="http://this.options.validateFile.call" rel="nofollow noopener" target="_blank" title="this.options.validateFile.call"&gt;this.options.validateFile.call&lt;/a&gt;(this, file, errors)) {&lt;br&gt;			errors.push('custom');&lt;br&gt;			this.zuloeschen.push(file);&lt;br&gt;			//  ...&lt;/p&gt;&lt;p&gt;	//  ...&lt;br&gt;	onAllSelect: function(files, current, overall) {&lt;br&gt;		// see above ...&lt;br&gt;		for (var zaehler in this.zuloeschen) {&lt;br&gt;			var dateizuloeschen = this.zuloeschen[zaehler];&lt;br&gt;			if (typeof(dateizuloeschen)!='undefined') { &lt;br&gt;			    if (dateizuloeschen!='') {&lt;br&gt;				this.removeFile(dateizuloeschen);&lt;br&gt;			    } // endif not empty&lt;br&gt;			} // endif defined&lt;br&gt;		} // next file in array of invalid files&lt;br&gt;		this.zuloeschen=[];&lt;/p&gt;&lt;p&gt;	//  ...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fraktalisman</dc:creator><pubDate>Tue, 24 Feb 2009 09:48:13 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-6566592</link><description>&lt;p&gt;That sounds great! Any idea when it will be ready?&lt;/p&gt;&lt;p&gt;For everybody using my patch posted above, until the new version is ready, please note that this is not yet complete and will only remove 1 file! I will change it to use an array instead of the variable so it works properly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fraktalisman</dc:creator><pubDate>Tue, 24 Feb 2009 07:42:02 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-6504435</link><description>&lt;p&gt;I finally patched FancyUpload2.js &lt;br&gt;beacause of  the IE bug (Internet Explorer 6 / 7 / 8 partially ignoring return false inside onSelect and uploading the file even though it does not appear in the queue shown in the browser);&lt;/p&gt;&lt;p&gt;Thanks to the other posters for the initial suggestions. What I do is check the file for file type, minimum size and maximum size using a custom validateFile function in the swiffy constructor.&lt;/p&gt;&lt;p&gt;window.addEvent('load', function() {&lt;br&gt;	var swiffy$artikelnr = new FancyUpload2( [...]&lt;br&gt;	// more options here&lt;br&gt;	validateFile: function(datei) {&lt;br&gt;		// various tests here&lt;br&gt;		if (correct==1) return true;&lt;br&gt;		return false;&lt;br&gt;	}&lt;br&gt;[...]&lt;/p&gt;&lt;p&gt;To get this actually working in Internet Explorer as well, I had to modify FancyUpload2.js&lt;/p&gt;&lt;p&gt;	onSelect: function(file, index, length) {&lt;br&gt;		var errors = [];&lt;br&gt;		if (this.options.limitSize &amp;amp;&amp;amp; (file.size &amp;gt; this.options.limitSize)) errors.push('size');&lt;br&gt;		if (this.options.limitFiles &amp;amp;&amp;amp; (this.countFiles() &amp;gt;= this.options.limitFiles)) errors.push('length');&lt;br&gt;		if (!this.options.allowDuplicates &amp;amp;&amp;amp; this.getFile(file)) errors.push('duplicate');&lt;br&gt;		if (!&lt;a href="http://this.options.validateFile.call" rel="nofollow noopener" target="_blank" title="this.options.validateFile.call"&gt;this.options.validateFile.call&lt;/a&gt;(this, file, errors)) errors.push('custom');&lt;br&gt;		if (errors.length) {&lt;br&gt;			alert('zu loeschen');&lt;br&gt;			this.zuloeschen=file;&lt;br&gt;			var fn = this.options.fileInvalid;&lt;br&gt;			if (fn) &lt;a href="http://fn.call" rel="nofollow noopener" target="_blank" title="fn.call"&gt;fn.call&lt;/a&gt;(this, file, errors);&lt;br&gt;			// return false; // DONT RETURN FALSE YET AT THIS PLACE&lt;br&gt;		}&lt;br&gt;		(this.options.fileCreate || this.fileCreate).call(this, file);&lt;br&gt;		this.files.push(file);&lt;br&gt;		return true;&lt;br&gt;	},&lt;/p&gt;&lt;p&gt;	onAllSelect: function(files, current, overall) {&lt;br&gt;		if (typeof(this.zuloeschen)!='undefined') { &lt;br&gt;		    if (this.zuloeschen!='') {&lt;br&gt;		        this.removeFile(this.zuloeschen);&lt;br&gt;		        this.zuloeschen='';&lt;br&gt;		    }&lt;br&gt;		}&lt;br&gt;		this.log('Added ' + files.length + ' files, now we have (' + current.bytesTotal + ' bytes).', arguments);&lt;br&gt;		this.updateOverall(current.bytesTotal);&lt;br&gt;		this.status.removeClass('status-browsing');&lt;br&gt;		if (this.files.length &amp;amp;&amp;amp; this.options.instantStart) this.upload.delay(10, this);&lt;br&gt;	},&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fraktalisman</dc:creator><pubDate>Mon, 23 Feb 2009 15:21:03 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-6503580</link><description>&lt;p&gt;only question left:&lt;br&gt;what is the correct syntax to call removeFile()&lt;br&gt;for one file from inside function onAllSelect   inside the script FancyUpload2.js&lt;/p&gt;&lt;p&gt;already tried&lt;/p&gt;&lt;p&gt;this.removeFile(fileObject);&lt;br&gt;removeFile(fileObject);&lt;br&gt;FancyUpload2.removeFile(fileObject);&lt;/p&gt;&lt;p&gt;no error message, but no file removed, no remove function called.&lt;br&gt;(I checked with an alert inside the remove function. the alert only shows when I manually delete a file from the file list shown in the browser)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fraktalisman</dc:creator><pubDate>Mon, 23 Feb 2009 14:43:53 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-6503511</link><description>&lt;p&gt;I had this error message when the html browse button was calling the old browse function (from flash 9 version). The flash 10 Version (FancyUpload 2) moves a transparent flash over the HTML Browse button that calls another file selector instead.&lt;/p&gt;&lt;p&gt;Try adding after the Swiffy-Constructor:&lt;/p&gt;&lt;p&gt;	\$('demo-browse').addEvent('mouseover', function() {&lt;br&gt;		swiffy.reposition();&lt;br&gt;	});&lt;/p&gt;&lt;p&gt;Replace demo-browse with the ID of your actual browse button,&lt;br&gt;and swiffy with the actual instance name of the FacyUpload2.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fraktalisman</dc:creator><pubDate>Mon, 23 Feb 2009 14:41:01 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-6496212</link><description>&lt;p&gt;Hidden indeed! Took me DAYS to understand the problem and find this hint!&lt;br&gt;reposition() should be mentioned on the main page of FancyUpload, this might save other developpers a lot of wasted time. Thanks a lot for this comment!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fraktalisman</dc:creator><pubDate>Mon, 23 Feb 2009 08:27:03 -0000</pubDate></item></channel></rss>