<?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 lambmy</title><link>http://disqus.com/by/lambmy/</link><description></description><atom:link href="http://disqus.com/lambmy/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 20 Jul 2008 16:39:17 -0000</lastBuildDate><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-951167</link><description>&lt;p&gt;Thanks!  your detailed explanation did help me finding my own bug :P &lt;br&gt;Since I want my php script to fetch data after all file uploads complete, I redirect to that PHP script page by inserting a " window.location = ..." statement within "‘onAllComplete’: function() {...}"  However, I didn't know that fancyupload script is no longer responsible for the data transfer during the redirection after all file uploads complete; therefore, fancyupload did transfer that 'var1' variable to my PHP script in each file uploading loop, but after all file uploading loops are done (All file uploads complete), fancyupload only does whatever codes within "‘onAllComplete’: function() {...}", and will not transfer the data that contained within the initialization (‘data’:{var1:’value1’, var2:’value2’}).  I solved this issue by creating a javascript setcookie function to send the data i want to send during the redirection, and of course, i can still receive the cookie by using $_COOKIE['var1'] on my receiving PHP script.&lt;/p&gt;&lt;p&gt;Anyway, thank you for spending your time answering my questions (and clarifying my confusion!).  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lambmy</dc:creator><pubDate>Sun, 20 Jul 2008 16:39:17 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-947171</link><description>&lt;p&gt;Darn! keep posting at the wrong locations!&lt;/p&gt;&lt;p&gt;Ok, I gave up trying my codes, so i just used your example (‘data’: {var1:’test123’, var2:’test456’}) to see the result and maybe i could figure out what went wrong. In my PHP script which handles file uploading, I typed the following:&lt;/p&gt;&lt;p&gt;if (isset ($_POST[‘var1’])) echo “var 1 is set”; else echo “var 1 is not set”;&lt;/p&gt;&lt;p&gt;and also&lt;/p&gt;&lt;p&gt;mkdir($_POST[‘var1’]);&lt;/p&gt;&lt;p&gt;After the all file upload completed, there was no new folder created and the echo output “var 1 is not set”.&lt;/p&gt;&lt;p&gt;I have checked the error console in Firefox, but there is no error related to the fancyupload js.&lt;/p&gt;&lt;p&gt;Is it possible to show me the complete codes that you use to pass the data to the file handling script? or can you tell me what I did wrong? thanks.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lambmy</dc:creator><pubDate>Sun, 20 Jul 2008 00:33:40 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-947146</link><description>&lt;p&gt;Ok, I gave up trying my codes, so i just used your example (‘data’: {var1:’test123’, var2:’test456’}) to see the result and maybe i could figure out what went wrong. In my PHP script which handles file uploading, I typed the following:&lt;/p&gt;&lt;p&gt;if (isset ($_POST[‘var1’])) echo “var 1 is set”; else echo “var 1 is not set”;&lt;/p&gt;&lt;p&gt;and also&lt;/p&gt;&lt;p&gt;mkdir($_POST[‘var1’]);&lt;/p&gt;&lt;p&gt;After the all file upload completed, there was no new folder created and the echo output “var 1 is not set”.&lt;/p&gt;&lt;p&gt;I have checked the error console in Firefox, but there is no error related to the fancyupload js.&lt;/p&gt;&lt;p&gt;Is it possible to show me the complete codes that you use to pass the data to the file handling script? or can you tell me what I did wrong? thanks.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lambmy</dc:creator><pubDate>Sun, 20 Jul 2008 00:28:34 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-939023</link><description>&lt;p&gt;Forgot to add that semi-colon ";"&lt;br&gt;at &lt;br&gt;$url_post_title.”’”; ?&amp;gt;}&lt;/p&gt;&lt;p&gt;but it is still not working.......&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lambmy</dc:creator><pubDate>Fri, 18 Jul 2008 22:33:58 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-938849</link><description>&lt;p&gt;Do you mean all file uploads complete or only each time a single file upload completes?&lt;/p&gt;&lt;p&gt;For all file uploads completion:&lt;br&gt;At the js code for initializing the uploader, add the js scripts you want within 'onAllComplete': function()&lt;/p&gt;&lt;p&gt;Here is the working codes example:&lt;/p&gt;&lt;p&gt;var swiffy = new FancyUpload2($('demo-status'), $('demo-list'), {&lt;br&gt;'url': $('form-demo').action,&lt;br&gt;'fieldName': 'photoupload',&lt;br&gt;'path': 'includes/uncached_swf.php',&lt;br&gt;'data': {},&lt;br&gt;'onAllComplete': function()&lt;br&gt;{&lt;br&gt;	this.currentText.set('html', 'All Uploads complete! Reloading this page...');&lt;br&gt;	window.location = "?complete=1&amp;amp;preview=";&lt;br&gt;},&lt;br&gt;'onLoad': function() &lt;br&gt;{&lt;br&gt;$('demo-status').removeClass('hide');&lt;br&gt;$('demo-fallback').destroy();&lt;br&gt;}&lt;br&gt;});&lt;/p&gt;&lt;p&gt;so as you probably can see from my example, I have added a text string of "All Uploads complete! Reloading this page..." and redirected to another script page by "window.location = "?complete=1&amp;amp;preview=";" after all file uploads complete.&lt;/p&gt;&lt;p&gt;For a single file upload completion, I am not sure that my following solution works, since I never need to execute any script after a single file upload completion.  My solution: just add  'onComplete': function() {} at the js code for initializing the uploader, and include whatever js script you want within the function.  I hope this helps.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lambmy</dc:creator><pubDate>Fri, 18 Jul 2008 21:59:40 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-938727</link><description>&lt;p&gt;Hi Nick,&lt;/p&gt;&lt;p&gt;I have tried your method of sending data.  However, it somehow does not work for me.  Since I want to pass some variables to another script after files uploads are complete, I have typed the following (I write my script in PHP):&lt;/p&gt;&lt;p&gt;'data': {}&lt;/p&gt;&lt;p&gt;(TFP_COL3 &amp;amp; TFP_COL5 are constants of my PHP script)&lt;/p&gt;&lt;p&gt;so at the receiving end (The another script), I have typed:&lt;/p&gt;&lt;p&gt;echo $_POST[TFP_COL3]; and echo $_POST[TFP_COL5];&lt;/p&gt;&lt;p&gt;to capture the variables.&lt;/p&gt;&lt;p&gt;Also, I typed the following:&lt;/p&gt;&lt;p&gt;'onAllComplete': function() {&lt;br&gt;this.currentText.set('html', 'All Uploads complete! Reloading this page...');&lt;br&gt;window.location = "?complete=1&amp;amp;preview=";}&lt;/p&gt;&lt;p&gt;at the js code for initializing the uploader to redirect my page to the another script with some $_GET method data (which are complete = 1 and preview = $_COOKIE["PREVIEW"] to indicate the files have been uploaded successfully and completely) after file uploads are complete.  Therefore, if the ‘data’: {var1:’test123’, var2:’test456’} method works correctly, I will be seeing data of TFP_COL3 &amp;amp; TFP_COL5 echo on the receiving script.  However, I do not see the results that I expect.  Can someone help me? Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lambmy</dc:creator><pubDate>Fri, 18 Jul 2008 21:42:13 -0000</pubDate></item></channel></rss>