<?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: Using jQuery Alerts plugin to submit a form</title>
	<atom:link href="http://frankkoehl.com/2009/06/using-jquery-alerts-plugin-submit-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankkoehl.com/2009/06/using-jquery-alerts-plugin-submit-form/</link>
	<description>The more you know, the more you don&#039;t know</description>
	<lastBuildDate>Tue, 15 May 2012 23:58:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Frank</title>
		<link>http://frankkoehl.com/2009/06/using-jquery-alerts-plugin-submit-form/comment-page-1/#comment-1262</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 04 Jun 2009 03:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=593#comment-1262</guid>
		<description>&lt;em&gt;at this altitude&lt;/em&gt;

Good qualifier, but you hit the nail on the head with &quot;getting the job done already.&quot; Combinations of HTML, CSS, and JavaScript often present several routes to the same solution. My rule of thumb has become &quot;Does it work? In all browsers? Good, moving on.&quot;</description>
		<content:encoded><![CDATA[<p><em>at this altitude</em></p>
<p>Good qualifier, but you hit the nail on the head with &#8220;getting the job done already.&#8221; Combinations of HTML, CSS, and JavaScript often present several routes to the same solution. My rule of thumb has become &#8220;Does it work? In all browsers? Good, moving on.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://frankkoehl.com/2009/06/using-jquery-alerts-plugin-submit-form/comment-page-1/#comment-1261</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 04 Jun 2009 03:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=593#comment-1261</guid>
		<description>Frank - certainly most folks who find this information most useful are those in search of a turn-key solution to jQuery form submissions - and for that, the text does it&#039;s job well.  That said, I have yet another comment...

&quot;not as flexible when it comes to adding more jQuery magic to the mix.&quot;

And you&#039;re absolutely right... that is... it&#039;s not as flexible *at this altitude.*  A level higher (or lower, you could make the case) on the abstraction ladder, and you&#039;d find many ways to utilize a non-inlined callback for the form submission.  But... then the argument becomes an architectural brow-beating, and not one of just getting the job done already.

At any rate, for the up-and-coming, jQuery-using crowd, you present several core concepts of jQuery form and function while at the same time applying the lessons to a real example - and that&#039;s just cool.</description>
		<content:encoded><![CDATA[<p>Frank &#8211; certainly most folks who find this information most useful are those in search of a turn-key solution to jQuery form submissions &#8211; and for that, the text does it&#8217;s job well.  That said, I have yet another comment&#8230;</p>
<p>&#8220;not as flexible when it comes to adding more jQuery magic to the mix.&#8221;</p>
<p>And you&#8217;re absolutely right&#8230; that is&#8230; it&#8217;s not as flexible *at this altitude.*  A level higher (or lower, you could make the case) on the abstraction ladder, and you&#8217;d find many ways to utilize a non-inlined callback for the form submission.  But&#8230; then the argument becomes an architectural brow-beating, and not one of just getting the job done already.</p>
<p>At any rate, for the up-and-coming, jQuery-using crowd, you present several core concepts of jQuery form and function while at the same time applying the lessons to a real example &#8211; and that&#8217;s just cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://frankkoehl.com/2009/06/using-jquery-alerts-plugin-submit-form/comment-page-1/#comment-1260</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 04 Jun 2009 03:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=593#comment-1260</guid>
		<description>Thanks, Chris. You&#039;re right, if I un-nested all the functions, I could get all the proper &lt;code&gt;return&lt;/code&gt; events to fire and thus handle this process with a normal submit button and a call to jQuery&#039;s &lt;code&gt;&lt;a href=&quot;http://docs.jquery.com/Events/submit&quot; rel=&quot;nofollow&quot;&gt;submit(fn)&lt;/a&gt;&lt;/code&gt;. 

However, that code is (a) a bit longer and (b) not as flexible when it comes to adding more jQuery magic to the mix.

As for the function scope of confirmDelete(), I was just keeping things simple, as most readers simply want a working solution. However technical background is always a good thing. Thanks for covering for my laziness.</description>
		<content:encoded><![CDATA[<p>Thanks, Chris. You&#8217;re right, if I un-nested all the functions, I could get all the proper <code>return</code> events to fire and thus handle this process with a normal submit button and a call to jQuery&#8217;s <code><a href="http://docs.jquery.com/Events/submit" rel="nofollow">submit(fn)</a></code>. </p>
<p>However, that code is (a) a bit longer and (b) not as flexible when it comes to adding more jQuery magic to the mix.</p>
<p>As for the function scope of confirmDelete(), I was just keeping things simple, as most readers simply want a working solution. However technical background is always a good thing. Thanks for covering for my laziness.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://frankkoehl.com/2009/06/using-jquery-alerts-plugin-submit-form/comment-page-1/#comment-1258</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 04 Jun 2009 00:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://frankkoehl.com/?p=593#comment-1258</guid>
		<description>&quot;If not done properly, the submit event is not “held up” by the confirmation dialog, input validation&quot;

There is another way to do this.  The third argument of the jConfirm() function is just a callback.  You could have defined the function with an arbitrary name (the signature of which will be specified by jConfirm) and passed the name of that function in instead.  By convention however, jQuery-esque scripts always prefer to inline these things (following the Java tradition of anonymous listeners, etc.).

&quot;Also note the position of confirmDelete(): outside of the jQuery “document ready” block. If you put it inside, it won’t work.&quot;

Yep - if you defined confirmDelete() inside of document.ready(), then you would only be able to call confirmDelete() from within document.ready() - that&#039;s just the nature of nested functions (which are supported by JavaScript, Python, et. a. - but not PHP as you&#039;re used to).</description>
		<content:encoded><![CDATA[<p>&#8220;If not done properly, the submit event is not “held up” by the confirmation dialog, input validation&#8221;</p>
<p>There is another way to do this.  The third argument of the jConfirm() function is just a callback.  You could have defined the function with an arbitrary name (the signature of which will be specified by jConfirm) and passed the name of that function in instead.  By convention however, jQuery-esque scripts always prefer to inline these things (following the Java tradition of anonymous listeners, etc.).</p>
<p>&#8220;Also note the position of confirmDelete(): outside of the jQuery “document ready” block. If you put it inside, it won’t work.&#8221;</p>
<p>Yep &#8211; if you defined confirmDelete() inside of document.ready(), then you would only be able to call confirmDelete() from within document.ready() &#8211; that&#8217;s just the nature of nested functions (which are supported by JavaScript, Python, et. a. &#8211; but not PHP as you&#8217;re used to).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

