<?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 on: Simple Ajax Form Tutorial</title>
	<atom:link href="http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/</link>
	<description>Companion blog to the book</description>
	<lastBuildDate>Thu, 15 Dec 2011 13:51:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Ty</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-10161</link>
		<dc:creator>Ty</dc:creator>
		<pubDate>Fri, 07 Oct 2011 02:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-10161</guid>
		<description>Darn, it truncated again, there must be a bug or something preventing that code being posted.

Basically it is a Dojo Ajax form with Ajax validation which works fine, and your code is as above just with form name changed.

It is definitely posting ok as it comes back with the right message, just if I can stop it submitting each time I change fields that would be great! :)</description>
		<content:encoded><![CDATA[<p>Darn, it truncated again, there must be a bug or something preventing that code being posted.</p>
<p>Basically it is a Dojo Ajax form with Ajax validation which works fine, and your code is as above just with form name changed.</p>
<p>It is definitely posting ok as it comes back with the right message, just if I can stop it submitting each time I change fields that would be great! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ty</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-10160</link>
		<dc:creator>Ty</dc:creator>
		<pubDate>Fri, 07 Oct 2011 02:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-10160</guid>
		<description>Hi mate, sorry, it truncated a bit there. JSfiddle seems to have weird layout output, probably something I did in there as test on my PC layout fine.

Your code is as above except form name changed to match below.

 
                            
                                return confirm(&#039;Press OK to reset User values&#039;);
                            
                            
                                if (this.validate()) {
                                    return confirm(&#039;Form is valid, press OK to submit&#039;);
                                } else {
                                    alert(&#039;Form contains invalid data.  Please correct first&#039;);
                                    return false;
                                }
                                return true;
                            
                            
                                
                                    
                                        
                                            User Name:  
                                        
                                    



 
                                
                                    Submit
                                
                                
                                    Reset
                                
                        
                         
                          Response from server
                          
                        
                        </description>
		<content:encoded><![CDATA[<p>Hi mate, sorry, it truncated a bit there. JSfiddle seems to have weird layout output, probably something I did in there as test on my PC layout fine.</p>
<p>Your code is as above except form name changed to match below.</p>
<p>                                return confirm(&#8216;Press OK to reset User values&#8217;);</p>
<p>                                if (this.validate()) {<br />
                                    return confirm(&#8216;Form is valid, press OK to submit&#8217;);<br />
                                } else {<br />
                                    alert(&#8216;Form contains invalid data.  Please correct first&#8217;);<br />
                                    return false;<br />
                                }<br />
                                return true;</p>
<p>                                            User Name:  </p>
<p>                                    Submit</p>
<p>                                    Reset</p>
<p>                          Response from server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Hayes</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-10157</link>
		<dc:creator>Kyle Hayes</dc:creator>
		<pubDate>Fri, 07 Oct 2011 02:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-10157</guid>
		<description>Hey bud, if you can, it would be great to see a bit more code. Can you replicate the issue on jsfiddle.net ?</description>
		<content:encoded><![CDATA[<p>Hey bud, if you can, it would be great to see a bit more code. Can you replicate the issue on jsfiddle.net ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ty</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-10155</link>
		<dc:creator>Ty</dc:creator>
		<pubDate>Fri, 07 Oct 2011 01:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-10155</guid>
		<description>Hi,

Great little article, I have come across a problem though and that is that my dojo form when being filled out is constantly posting that data to the target page so as soon as I tab from username to password it posts the username. Rather an odd behavior. It also disables the submit and reset button so I cannot submit the entire form....  Thanks


                            
                                return confirm(&#039;Press OK to reset User values&#039;);
                            
                            
                                if (this.validate()) {
                                    return confirm(&#039;Form is valid, press OK to submit&#039;);
                                } else {
                                    alert(&#039;Form contains invalid data.  Please correct first&#039;);
                                    return false;
                                }
                                return true;
                            </description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great little article, I have come across a problem though and that is that my dojo form when being filled out is constantly posting that data to the target page so as soon as I tab from username to password it posts the username. Rather an odd behavior. It also disables the submit and reset button so I cannot submit the entire form&#8230;.  Thanks</p>
<p>                                return confirm(&#8216;Press OK to reset User values&#8217;);</p>
<p>                                if (this.validate()) {<br />
                                    return confirm(&#8216;Form is valid, press OK to submit&#8217;);<br />
                                } else {<br />
                                    alert(&#8216;Form contains invalid data.  Please correct first&#8217;);<br />
                                    return false;<br />
                                }<br />
                                return true;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Hayes</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-5353</link>
		<dc:creator>Kyle Hayes</dc:creator>
		<pubDate>Sat, 19 Mar 2011 00:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-5353</guid>
		<description>Ah ok, interesting. It seems that it&#039;s not able to find the form by that id. Assuming your form has the id of &quot;contact&quot;, try replacing form: &quot;contact&quot; with form: dojo.byId(&quot;contact&quot;)

See if that makes a difference. Otherwise, drop the form attribute altogether and add a url attribute instead that you want the request to post to. This would likely be the URL that you were using for the &quot;action&quot; attribute on the form.</description>
		<content:encoded><![CDATA[<p>Ah ok, interesting. It seems that it&#8217;s not able to find the form by that id. Assuming your form has the id of &#8220;contact&#8221;, try replacing form: &#8220;contact&#8221; with form: dojo.byId(&#8220;contact&#8221;)</p>
<p>See if that makes a difference. Otherwise, drop the form attribute altogether and add a url attribute instead that you want the request to post to. This would likely be the URL that you were using for the &#8220;action&#8221; attribute on the form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-5351</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 18 Mar 2011 23:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-5351</guid>
		<description>Using the Error Console in Firefox, when a link is clicked it gives the message:
&quot;Error: form is null
Source File: http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js
Line: 16&quot;
It highlights the entire dojo function as being the problem.
Thanks</description>
		<content:encoded><![CDATA[<p>Using the Error Console in Firefox, when a link is clicked it gives the message:<br />
&#8220;Error: form is null<br />
Source File: <a href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js" rel="nofollow">http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js</a><br />
Line: 16&#8243;<br />
It highlights the entire dojo function as being the problem.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-5350</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 18 Mar 2011 23:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-5350</guid>
		<description>Yeah the form works great. The script itself works very well. As sson as I added the Javascript the links stopped working. Basically you can hover over links as normal and the url is displayed in the browser so they are still linked, but when you click them nothing happens. They do not link anywhere. Really not sure what it is. Any help would be greatly appreciated.
Thanks</description>
		<content:encoded><![CDATA[<p>Yeah the form works great. The script itself works very well. As sson as I added the Javascript the links stopped working. Basically you can hover over links as normal and the url is displayed in the browser so they are still linked, but when you click them nothing happens. They do not link anywhere. Really not sure what it is. Any help would be greatly appreciated.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Hayes</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-5346</link>
		<dc:creator>Kyle Hayes</dc:creator>
		<pubDate>Fri, 18 Mar 2011 13:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-5346</guid>
		<description>Hey Chris, does the form post not work either? Also, can you clarify about the navigation not working?</description>
		<content:encoded><![CDATA[<p>Hey Chris, does the form post not work either? Also, can you clarify about the navigation not working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-5340</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 18 Mar 2011 01:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-5340</guid>
		<description>Hey, thanks for this simple form. Unfortunately I have the same issue Nathan had. My navigation has also been killed by it for some reason.
Any idea what this could be?
Thanks</description>
		<content:encoded><![CDATA[<p>Hey, thanks for this simple form. Unfortunately I have the same issue Nathan had. My navigation has also been killed by it for some reason.<br />
Any idea what this could be?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Hayes</title>
		<link>http://startdojo.com/2010/01/02/simple-ajax-form-tutorial/comment-page-1/#comment-4839</link>
		<dc:creator>Kyle Hayes</dc:creator>
		<pubDate>Sat, 12 Feb 2011 17:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://startdojo.com/?p=45#comment-4839</guid>
		<description>Don&#039;t sweat it! I&#039;m just glad you got it to work.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t sweat it! I&#8217;m just glad you got it to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

