<?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"
	>
<channel>
	<title>Comments on: Building your first Ajax application with PHP</title>
	<atom:link href="http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/</link>
	<description>My personal site and blog</description>
	<pubDate>Thu, 04 Dec 2008 02:16:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: 50 Excellent AJAX Tutorials &#124; Evolution : weblog</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130591</link>
		<dc:creator>50 Excellent AJAX Tutorials &#124; Evolution : weblog</dc:creator>
		<pubDate>Fri, 31 Oct 2008 04:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130591</guid>
		<description>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130468</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Tue, 21 Oct 2008 18:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130468</guid>
		<description>Excellent tutorial for starters, thanks!

Mario</description>
		<content:encoded><![CDATA[<p>Excellent tutorial for starters, thanks!</p>
<p>Mario</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50+ Great Ajax Tutorial &#124; Tech User, Blogger and Designers References</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130462</link>
		<dc:creator>50+ Great Ajax Tutorial &#124; Tech User, Blogger and Designers References</dc:creator>
		<pubDate>Tue, 21 Oct 2008 11:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130462</guid>
		<description>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130433</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 18 Oct 2008 22:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130433</guid>
		<description>@Chris

From what I remember, it is certainly possible to put doAjaxQuery() inside the action of the form, provided you prefix it with javascript:

Something like this:

&lt;code&gt;action="javascript:doAjaxQuery(...etc...)"&lt;/code&gt;

However, it seemed to me at the time to be 'cleaner' to put JavaScript code into the onsubmit event handler, as that's what event handlers are designed for (and you don't need the javascript: prefix there).

The blank javascript:; in the action therefore is simply to prevent the browser from going anywhere when the form is submitted, but to ensure that the onsubmit event code is still executed.</description>
		<content:encoded><![CDATA[<p>@Chris</p>
<p>From what I remember, it is certainly possible to put doAjaxQuery() inside the action of the form, provided you prefix it with javascript:</p>
<p>Something like this:</p>
<p><code>action="javascript:doAjaxQuery(...etc...)"</code></p>
<p>However, it seemed to me at the time to be &#8216;cleaner&#8217; to put JavaScript code into the onsubmit event handler, as that&#8217;s what event handlers are designed for (and you don&#8217;t need the javascript: prefix there).</p>
<p>The blank javascript:; in the action therefore is simply to prevent the browser from going anywhere when the form is submitted, but to ensure that the onsubmit event code is still executed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130432</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 18 Oct 2008 18:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130432</guid>
		<description>Really good simple tutorial, and well explained, so just a small question!

Could you just explain why the form submit parameter is action="javascript:" and the ajax is called by the onsubmit event?
I was thinking the onsbmit parameter could be the form action, but I tried and it doesn't work, i just don't understand quite why!
Thanks</description>
		<content:encoded><![CDATA[<p>Really good simple tutorial, and well explained, so just a small question!</p>
<p>Could you just explain why the form submit parameter is action=&#8221;javascript:&#8221; and the ajax is called by the onsubmit event?<br />
I was thinking the onsbmit parameter could be the form action, but I tried and it doesn&#8217;t work, i just don&#8217;t understand quite why!<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Excellent AJAX Tutorials &#124; Web Burning Blog</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130430</link>
		<dc:creator>50 Excellent AJAX Tutorials &#124; Web Burning Blog</dc:creator>
		<pubDate>Sat, 18 Oct 2008 08:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130430</guid>
		<description>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Excellent AJAX Tutorials &#124; POLPDESIGN</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130429</link>
		<dc:creator>50 Excellent AJAX Tutorials &#124; POLPDESIGN</dc:creator>
		<pubDate>Sat, 18 Oct 2008 07:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130429</guid>
		<description>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building Your First AJAX Application with PHP An introductory post for getting started with AJAX. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaizened</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130427</link>
		<dc:creator>kaizened</dc:creator>
		<pubDate>Fri, 17 Oct 2008 23:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130427</guid>
		<description>Many thanks for giving me a first experience with AJAX. I think the way you make tutorials is the best there is for starters like me.
I noticed one error:
if (ajaxObject.responseText == '1') {
should become
if (ajaxObject.responseText == 1) {
because in my browser the number was recognized and not the string</description>
		<content:encoded><![CDATA[<p>Many thanks for giving me a first experience with AJAX. I think the way you make tutorials is the best there is for starters like me.<br />
I noticed one error:<br />
if (ajaxObject.responseText == &#8216;1&#8242;) {<br />
should become<br />
if (ajaxObject.responseText == 1) {<br />
because in my browser the number was recognized and not the string</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: badpenguin</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130426</link>
		<dc:creator>badpenguin</dc:creator>
		<pubDate>Fri, 17 Oct 2008 19:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130426</guid>
		<description>I can see absolutely no purpose for the session_start() in your ajax.php, other than to waste resources.</description>
		<content:encoded><![CDATA[<p>I can see absolutely no purpose for the session_start() in your ajax.php, other than to waste resources.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Gilmore</title>
		<link>http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130423</link>
		<dc:creator>Alan Gilmore</dc:creator>
		<pubDate>Fri, 17 Oct 2008 13:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://peter.upfold.org.uk/blog/2006/09/27/building-your-first-ajax-application-with-php/#comment-130423</guid>
		<description>Thanks for this series of tutorials.  I am a programmer of 13 years trying to add ajax and php to my skills.  The problem is that all the books and tutorials I have seen treat javascript like neat trick provider instead of an OOP language like I'm used to.  Keep up the good work, I'll be back.

Alan</description>
		<content:encoded><![CDATA[<p>Thanks for this series of tutorials.  I am a programmer of 13 years trying to add ajax and php to my skills.  The problem is that all the books and tutorials I have seen treat javascript like neat trick provider instead of an OOP language like I&#8217;m used to.  Keep up the good work, I&#8217;ll be back.</p>
<p>Alan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
