<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Club AJAX – Dallas Ft. Worth Area AJAX Users Group covering: AJAX, JavaScript, HTML, CSS, and Design</title>
	<atom:link href="http://clubajax.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://clubajax.org</link>
	<description>Dallas Ft. Worth Area AJAX Users Group covering: AJAX, JavaScript, HTML, CSS, and Design</description>
	<lastBuildDate>Mon, 09 Jan 2012 08:02:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on JavaScript Scope and Context &#8211; Not the Same Thing! by JsMag - the magazine for JavaScript developers</title>
		<link>http://clubajax.org/javascript-scope-and-context-not-the-same-thing/comment-page-1/#comment-13654</link>
		<dc:creator>JsMag - the magazine for JavaScript developers</dc:creator>
		<pubDate>Mon, 09 Jan 2012 08:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1808#comment-13654</guid>
		<description>[...] JavaScript Scope and Context – Not the Same Thing! (simply stated: functional scope versus object context [i.e. &quot;this&quot;]) [...]</description>
		<content:encoded><![CDATA[<p>[...] JavaScript Scope and Context – Not the Same Thing! (simply stated: functional scope versus object context [i.e. &quot;this&quot;]) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AMD &#8211; Why, What and How by JsMag - the magazine for JavaScript developers</title>
		<link>http://clubajax.org/presentations/amd-why-what-and-how/comment-page-1/#comment-13653</link>
		<dc:creator>JsMag - the magazine for JavaScript developers</dc:creator>
		<pubDate>Mon, 09 Jan 2012 08:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?page_id=1905#comment-13653</guid>
		<description>[...] AMD – Why, What and How (by Mike Wilcox) [...]</description>
		<content:encoded><![CDATA[<p>[...] AMD – Why, What and How (by Mike Wilcox) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New Dojo HTML5 Multi-File Uploader by mgn</title>
		<link>http://clubajax.org/the-new-dojo-html5-multi-file-uploader/comment-page-2/#comment-13639</link>
		<dc:creator>mgn</dc:creator>
		<pubDate>Sun, 08 Jan 2012 23:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1397#comment-13639</guid>
		<description>Well, part of my wierd behaviour when I call onSubmit on a programmatically-created Uploader in IE8 is that the IFrame Uploader sends a GET not a POST.  Looks like this is happening elsewhere too.

http://stackoverflow.com/questions/7895359/dojo-io-iframe-send-file-upload-sends-get-request-in-ie8

The Flash uploader in IE8 doesn&#039;t seem to do anything when I set the URL parameter programmatically after creation, so I am setting it to a fixed value on creation and then setting the name parameter in programmatically after creation.  It looks like I can then parse the POST on the server side to handle the fact that the POST is coming into the wrong place (obviosuly I can&#039;t do a redirect because a POST redirects to a GET).  Hopeful, but not yet got this working</description>
		<content:encoded><![CDATA[<p>Well, part of my wierd behaviour when I call onSubmit on a programmatically-created Uploader in IE8 is that the IFrame Uploader sends a GET not a POST.  Looks like this is happening elsewhere too.</p>
<p><a href="http://stackoverflow.com/questions/7895359/dojo-io-iframe-send-file-upload-sends-get-request-in-ie8" rel="nofollow">http://stackoverflow.com/questions/7895359/dojo-io-iframe-send-file-upload-sends-get-request-in-ie8</a></p>
<p>The Flash uploader in IE8 doesn&#8217;t seem to do anything when I set the URL parameter programmatically after creation, so I am setting it to a fixed value on creation and then setting the name parameter in programmatically after creation.  It looks like I can then parse the POST on the server side to handle the fact that the POST is coming into the wrong place (obviosuly I can&#8217;t do a redirect because a POST redirects to a GET).  Hopeful, but not yet got this working</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New Dojo HTML5 Multi-File Uploader by mgn</title>
		<link>http://clubajax.org/the-new-dojo-html5-multi-file-uploader/comment-page-2/#comment-13638</link>
		<dc:creator>mgn</dc:creator>
		<pubDate>Sun, 08 Jan 2012 22:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1397#comment-13638</guid>
		<description>Mike,

You&#039;re a good man. 

The uploader button can be clicked when it is created declaratively but not programmatically. The problem comes in at around 1.7.0b5 and it looks like it associated with a change in the button css.   

I&#039;m still trying to call onSubmit programmatically. I have taken the uploader code from 1.7.0b1 into a 1.7.1  (I can&#039;t use 1.7.0b1 directly because of other bugs) and it looks like  the 1.7.0b1 Uploader can be clicked OK.  With my patched-up release I can now call the onSubmit properly in Firefox.  However I run into another very strange bug when I call the onSubmit from IE. It fires up an upload dialog in IE. I&#039;m still investigating this one.

I&#039;m in Europe so it&#039;s late, but if you make any progress please post.

Thanks,

Mike</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>You&#8217;re a good man. </p>
<p>The uploader button can be clicked when it is created declaratively but not programmatically. The problem comes in at around 1.7.0b5 and it looks like it associated with a change in the button css.   </p>
<p>I&#8217;m still trying to call onSubmit programmatically. I have taken the uploader code from 1.7.0b1 into a 1.7.1  (I can&#8217;t use 1.7.0b1 directly because of other bugs) and it looks like  the 1.7.0b1 Uploader can be clicked OK.  With my patched-up release I can now call the onSubmit properly in Firefox.  However I run into another very strange bug when I call the onSubmit from IE. It fires up an upload dialog in IE. I&#8217;m still investigating this one.</p>
<p>I&#8217;m in Europe so it&#8217;s late, but if you make any progress please post.</p>
<p>Thanks,</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New Dojo HTML5 Multi-File Uploader by Mike Wilcox</title>
		<link>http://clubajax.org/the-new-dojo-html5-multi-file-uploader/comment-page-2/#comment-13635</link>
		<dc:creator>Mike Wilcox</dc:creator>
		<pubDate>Sun, 08 Jan 2012 20:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1397#comment-13635</guid>
		<description>So mgn, the issue is that you are unable to create two buttons programmatically in a dialog? One works? this is after the dialog has been created? I might be able to get to this today.</description>
		<content:encoded><![CDATA[<p>So mgn, the issue is that you are unable to create two buttons programmatically in a dialog? One works? this is after the dialog has been created? I might be able to get to this today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New Dojo HTML5 Multi-File Uploader by mgn</title>
		<link>http://clubajax.org/the-new-dojo-html5-multi-file-uploader/comment-page-2/#comment-13633</link>
		<dc:creator>mgn</dc:creator>
		<pubDate>Sun, 08 Jan 2012 19:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1397#comment-13633</guid>
		<description>It looks like it stripped a lot of html from the comment - which therefore won&#039;t make sense !</description>
		<content:encoded><![CDATA[<p>It looks like it stripped a lot of html from the comment &#8211; which therefore won&#8217;t make sense !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New Dojo HTML5 Multi-File Uploader by mgn</title>
		<link>http://clubajax.org/the-new-dojo-html5-multi-file-uploader/comment-page-2/#comment-13632</link>
		<dc:creator>mgn</dc:creator>
		<pubDate>Sun, 08 Jan 2012 19:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1397#comment-13632</guid>
		<description>Hello Mike,

It&#039;s me again (you&#039;ll see my comments some months back).  I never got the new Uploader onsubmit working programmatically by patching 1.6.1, but now I am moving on to using the 1.7.1 and I&#039;ve hit more problems.

Consider the following whihc should create two upload/submit button pairs - one declaratively and one programmatically. In 1.6.1 in  both firefox and IE they both are created and they both pop up dialogs.  In 1.7.1  in  both firefox and IE you get both pairs of buttons, but the second one doesn&#039;t pop up a dialog when you click it.

Unfortunately I need to create the buttons programmatically inside a dialog.

Any help appreciated.

Mike


    
        
        
  		
        Vulnerability Risk Manager

 		
 		



 		dojo.require(&quot;dojox.form.Uploader&quot;);
 		dojo.require(&quot;dojox.form.uploader.plugins.IFrame&quot;);
 		dojo.require(&quot;dijit.form.Form&quot;);
 		dojo.require(&quot;dijit.Dialog&quot;);
 		dojo.addOnLoad(function(){
 	 		
			var form = new dijit.form.Form({
				method:&quot;POST&quot;, 
				action:&quot;scanner/uploadJson?id=2&quot;,
				id:&quot;myForm2&quot;,
				encType:&quot;multipart/form-data&quot;
			});
			var uploader = new dojox.form.Uploader({
				name:&quot;uploadedfile&quot;,
				multiple:&quot;true&quot;,
				label:&quot;Select Some more Files&quot;
			});
			var submitter = new dijit.form.Button({
				type:&quot;submit&quot;,
				label:&quot;submit more&quot;
			});
			dojo.connect(form, &quot;onSubmit&quot;, uploader, function(e) {
	            e.preventDefault();
	            this.upload();
	            
	        })
			form.domNode.appendChild(uploader.domNode);
			form.domNode.appendChild(submitter.domNode);
			dojo.byId(&quot;secondForm&quot;).appendChild(form.domNode);
 	 	})
 		
 			
 
    
  
   
   

	 
	
</description>
		<content:encoded><![CDATA[<p>Hello Mike,</p>
<p>It&#8217;s me again (you&#8217;ll see my comments some months back).  I never got the new Uploader onsubmit working programmatically by patching 1.6.1, but now I am moving on to using the 1.7.1 and I&#8217;ve hit more problems.</p>
<p>Consider the following whihc should create two upload/submit button pairs &#8211; one declaratively and one programmatically. In 1.6.1 in  both firefox and IE they both are created and they both pop up dialogs.  In 1.7.1  in  both firefox and IE you get both pairs of buttons, but the second one doesn&#8217;t pop up a dialog when you click it.</p>
<p>Unfortunately I need to create the buttons programmatically inside a dialog.</p>
<p>Any help appreciated.</p>
<p>Mike</p>
<p>        Vulnerability Risk Manager</p>
<p> 		dojo.require(&#8220;dojox.form.Uploader&#8221;);<br />
 		dojo.require(&#8220;dojox.form.uploader.plugins.IFrame&#8221;);<br />
 		dojo.require(&#8220;dijit.form.Form&#8221;);<br />
 		dojo.require(&#8220;dijit.Dialog&#8221;);<br />
 		dojo.addOnLoad(function(){</p>
<p>			var form = new dijit.form.Form({<br />
				method:&#8221;POST&#8221;,<br />
				action:&#8221;scanner/uploadJson?id=2&#8243;,<br />
				id:&#8221;myForm2&#8243;,<br />
				encType:&#8221;multipart/form-data&#8221;<br />
			});<br />
			var uploader = new dojox.form.Uploader({<br />
				name:&#8221;uploadedfile&#8221;,<br />
				multiple:&#8221;true&#8221;,<br />
				label:&#8221;Select Some more Files&#8221;<br />
			});<br />
			var submitter = new dijit.form.Button({<br />
				type:&#8221;submit&#8221;,<br />
				label:&#8221;submit more&#8221;<br />
			});<br />
			dojo.connect(form, &#8220;onSubmit&#8221;, uploader, function(e) {<br />
	            e.preventDefault();<br />
	            this.upload();</p>
<p>	        })<br />
			form.domNode.appendChild(uploader.domNode);<br />
			form.domNode.appendChild(submitter.domNode);<br />
			dojo.byId(&#8220;secondForm&#8221;).appendChild(form.domNode);<br />
 	 	})</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The New Dojo HTML5 Multi-File Uploader by Guus</title>
		<link>http://clubajax.org/the-new-dojo-html5-multi-file-uploader/comment-page-2/#comment-13549</link>
		<dc:creator>Guus</dc:creator>
		<pubDate>Fri, 06 Jan 2012 13:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1397#comment-13549</guid>
		<description>Mike,

Great article!
I&#039;ve tried this on several different browsers just to find out it didn&#039;t work on all except IE9 (!)
After switching to Dojo 1.7 it worked. There were however so many different other problems with 1.7 I&#039;ve decided to go back to 1.6 (for now) until I&#039;ll find the time to get a grip on the specific changes in 1.7. I suspect my use of the Zend Framework has some influence on this behaviour.</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>Great article!<br />
I&#8217;ve tried this on several different browsers just to find out it didn&#8217;t work on all except IE9 (!)<br />
After switching to Dojo 1.7 it worked. There were however so many different other problems with 1.7 I&#8217;ve decided to go back to 1.6 (for now) until I&#8217;ll find the time to get a grip on the specific changes in 1.7. I suspect my use of the Zend Framework has some influence on this behaviour.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Context, Call and Bind &#8211; Ninja Level by Mike Wilcox</title>
		<link>http://clubajax.org/javascript-context-call-and-bind-ninja-level/comment-page-1/#comment-13087</link>
		<dc:creator>Mike Wilcox</dc:creator>
		<pubDate>Mon, 19 Dec 2011 14:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1823#comment-13087</guid>
		<description>Good post Bojan - I Tweeted it! And added &#039;other&#039; which was a very good suggestion :)</description>
		<content:encoded><![CDATA[<p>Good post Bojan &#8211; I Tweeted it! And added &#8216;other&#8217; which was a very good suggestion :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Context, Call and Bind &#8211; Ninja Level by Bojan</title>
		<link>http://clubajax.org/javascript-context-call-and-bind-ninja-level/comment-page-1/#comment-13086</link>
		<dc:creator>Bojan</dc:creator>
		<pubDate>Mon, 19 Dec 2011 13:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://clubajax.org/?p=1823#comment-13086</guid>
		<description>Hi Mike,
Very nice that you took the time to explain the context once again. I think that that is probably the hardest thing to grasp about JS.

Just a couple of things...

You mention &quot;Ever added the forEach method to Arrays?&quot;, but this is a part of JavaScript since version 1.6 (https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach). I happen to know because I recently wrote a post about that :) (http://www.bjelic.net/2011/11/16/coding/evolution-of-javascript-loop/)

Another thing is that you probably meant to write &quot;Context is the key differentiator between JavaScript and all OTHER major languages.&quot; ;)

Cool article!
Cheers,
Bojan</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
Very nice that you took the time to explain the context once again. I think that that is probably the hardest thing to grasp about JS.</p>
<p>Just a couple of things&#8230;</p>
<p>You mention &#8220;Ever added the forEach method to Arrays?&#8221;, but this is a part of JavaScript since version 1.6 (<a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach" rel="nofollow">https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach</a>). I happen to know because I recently wrote a post about that :) (<a href="http://www.bjelic.net/2011/11/16/coding/evolution-of-javascript-loop/" rel="nofollow">http://www.bjelic.net/2011/11/16/coding/evolution-of-javascript-loop/</a>)</p>
<p>Another thing is that you probably meant to write &#8220;Context is the key differentiator between JavaScript and all OTHER major languages.&#8221; ;)</p>
<p>Cool article!<br />
Cheers,<br />
Bojan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

