<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aarron Walter &#187; Ajax</title>
	<atom:link href="http://aarronwalter.com/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://aarronwalter.com</link>
	<description></description>
	<lastBuildDate>Wed, 16 May 2012 17:03:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Triple Your Mailing List Signups with Ajax and Common Sense</title>
		<link>http://aarronwalter.com/2007/03/20/triple-your-mailing-list-signups-with-ajax-and-common-sense/</link>
		<comments>http://aarronwalter.com/2007/03/20/triple-your-mailing-list-signups-with-ajax-and-common-sense/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 21:38:43 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Soliloquy]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2007/03/20/triple-your-mailing-list-signups-with-ajax-and-common-sense/</guid>
		<description><![CDATA[The guys over at Mail Chimp have posted some info about how I use an Ajax mailing list sign up system on the home page of client sites to triple the number of sign ups we get. It&#8217;s been amazingly successful for my clients, so much so I wrote about how to do it at [...]]]></description>
			<content:encoded><![CDATA[<p>The guys over at <a target="_blank" title="Mail Chimp: Awesome email marketing" href="http://mailchimp.com">Mail Chimp</a> have posted some info about <a target="_blank" title="Mail Chimp talks about Aarron Walter's Ajax mailing list sign up system" href="http://mailchimp.blogs.com/blog/2007/03/using_ajax_in_y.html">how I use an Ajax mailing list sign up system</a> on the home page of client sites to triple the number of sign ups we get. It&#8217;s been amazingly successful for my clients, so much so <a target="_blank" title="Use Ajax and PHP to build your mailing list" href="http://www.sitepoint.com/article/use-ajax-php-build-mailing-list.">I wrote about how to do it at SitePoint</a>. I recently began using the <a target="_blank" title="Mail Chimp API" href="http://www.mailchimp.com/api/">Mail Chimp API</a> to send all sign ups directly to my managed lists on their server, which makes launching campaigns pretty simple later on.</p>
<p>Thanks, Mail Chimp crew, for sharing the info with all who are interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2007/03/20/triple-your-mailing-list-signups-with-ajax-and-common-sense/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compressed Versions of Popular JavaScript Libraries</title>
		<link>http://aarronwalter.com/2007/02/01/compressed-versions-of-popular-javascript-libraries/</link>
		<comments>http://aarronwalter.com/2007/02/01/compressed-versions-of-popular-javascript-libraries/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 15:57:35 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools & Utilities]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2007/02/01/compressed-versions-of-popular-javascript-libraries/</guid>
		<description><![CDATA[I ran across a very useful collection of compressed versions of popular JavaScript libraries today, including Scriptaculous, and Prototype. The Prototype library compresses down from 70k to 30k, which is pretty impressive. I&#8217;m becoming more persuaded daily that MooTools is a better option, though, as it offers you the ability to pick and choose which [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across a very useful <a title="Compressed JavaScript Libraries" target="_blank" href="http://www.stevekallestad.com/wiki/Compressed_Javascript_Libraries">collection of compressed versions of popular  JavaScript libraries</a> today, including <a title="Scriptaculous JavaScript Library" target="_blank" href="http://script.aculo.us/">Scriptaculous</a>, and <a title="Prototype JavaScript Library" target="_blank" href="http://www.prototypejs.org/">Prototype</a>. The <a title="Prototype JavaScript Library" target="_blank" href="http://www.prototypejs.org/">Prototype</a> library compresses down from 70k to 30k, which is pretty impressive. I&#8217;m becoming more persuaded daily that <a title="MooTool JavaScript Library" href="http://mootools.net">MooTools</a> is a better option, though, as it offers you the ability to pick and choose which pieces of the library you wish to download, and offers compression on your custom built package resulting in vastly smaller file sizes than the <a title="Scriptaculous JavaScript Library" target="_blank" href="http://script.aculo.us/">Scriptaculous</a>/<a title="Prototype JavaScript Library" target="_blank" href="http://www.prototypejs.org/">Prototype</a> combo.</p>
<p>If you want to compress your own JavaScript or CSS, there are a host of utilities out there for just this task. See comments on <a target="_blank" title="JavaScript Compression Tools" href="http://photomatt.net/2005/05/29/javascript-compression/">this blog post</a> for a laundry list of options.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2007/02/01/compressed-versions-of-popular-javascript-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Engine Optimization Part 2: JavaScript Progressive Enhancement</title>
		<link>http://aarronwalter.com/2007/01/30/search-engine-optimization-part-2-javascript-progressive-enhancement/</link>
		<comments>http://aarronwalter.com/2007/01/30/search-engine-optimization-part-2-javascript-progressive-enhancement/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 22:12:42 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Findability]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2007/01/30/search-engine-optimization-part-2-javascript-progressive-enhancement/</guid>
		<description><![CDATA[As Ajax and DOM Scripting have become en vogue, blind zeal and un-enlightened use of powerful code libraries have caused many to build web sites that may impress visitors with elaborate effects, but adopt a 1998 approach to development, ignoring accessibility and search engine optimization. I&#8217;ve fallen into that trap myself at times. It&#8217;s awfully [...]]]></description>
			<content:encoded><![CDATA[<p>As Ajax and DOM Scripting have become en vogue, blind zeal and un-enlightened use of powerful code libraries have caused many to  build web sites that may impress visitors with elaborate effects, but adopt a 1998 approach to development, ignoring accessibility and search engine optimization. I&#8217;ve fallen into that trap myself at times. It&#8217;s awfully tempting to focus on seductive interface design effects that will create an interesting user experience for some, and alienate others. <em>If your site/web application uses JavaScript to navigate, or to dynamically load in/create content critical to the user experience, then it should take measures to gracefully degrade for search engine spiders and visitors using alternative devices to access the content</em>. If you are not building your pages to gracefully degrade, your content is invisible to search engines.</p>
<p><a title="JavaScript Progressive Enhancement" target="_blank" href="http://adactio.com/journal/959">Jeremy Keith</a>, <a title="Bruce Lawson on Ajax and Accessibility" target="_blank" href="http://www.brucelawson.co.uk/index.php/2006/ajax-hijax-and-accessibility/">Bruce Lawson</a>, <a title="Rob Cherney demonstrates how to hijack an HTML form with JavaScript" target="_blank" href="http://www.cherny.com/webdev/41/accessible-ajax-a-basic-hijax-example">Rob Cherney</a>, and many other JavaScript developers have been advocating best practices that address this issue for some time. It seems 2006 was the year we sobered ourselves after binging on inaccessible scripting techniques. <a title="Responsible Asynchronous Scripting" target="_blank" href="http://www.thinkvitamin.com/features/ajax/responsible-asynchronous-scripting">Many</a> <a title="Jeremy Keith Introduces Hijax" target="_blank" href="http://domscripting.com/blog/display/41">great</a> <a title="Ajax and Screen Readers, When Can it Work?" target="_blank" href="http://www.sitepoint.com/article/ajax-screenreaders-work">articles</a> were published bringing us back to our senses, preventing us from repeating our terrible development practices of the pre-standards 90&#8242;s. The resolution to the problem is to <strong>progressively enhance</strong> a web site that functions properly without JavaScript support.</p>
<p><a title="Rob Cherney demonstrates how to hijack an HMTL form with JavaScript" target="_blank" href="http://www.cherny.com/webdev/41/accessible-ajax-a-basic-hijax-example">Rob Cherney</a> demonstrates how to progressively enhance an HTML form that will function with JavaScript turned off, and will be enhanced if JavaScript is available. I&#8217;ll demonstrate how to progressively enhance a text link that makes an Ajax call to the server. If JavaScript is enabled, the href attribute is disabled and Ajax will load content from another source into a div for display. If JavaScript is disabled, the hyperlink works as usual, and directs the browser to another page where the same content is viewable. A fancy interactive, animated interface created with DOM scripting could use this approach, and gracefully degrade to a typical multi-page site that search engine spiders would have no trouble crawling.</p>
<p>A hyperlink can be easily disabled with a &#8220;return false&#8221; event as is seen below.</p>
<p>[html]<a xhref="page.php" onclick="ajaxTest(); return false;">Have Your Cake and Eat It Too</a>[/html]</p>
<p>The onclick event will call a function then return false, preventing the hyperlink from firing. This is a very simple demonstration of progressive enhancement in action, but we can do better still. A search engine spider would navigate to page.php where it could find more content to index, but in a real world implementation of this technique, it would be advisable to attach an event to the hyperlink unobtrusively from an external script rather than from an event handler that mixes behavior and structure. By assigning a class to the link and using JavaScript to find elements with this class name you can separate behavior and structure resulting in more maintainable code, and external code that can be cached or even skipped by search engine spiders resulting in faster parsing (spiders appreciate this). I&#8217;ll take the functionality a step further to display Ajax retrieved content in a div tag when the link is clicked.</p>
<p>[html]<br />
<a xhref="page.php" class="progressive" rel="displayDiv">Have Your Cake and Eat It Too</a></p>
<div id="displayDiv"></div>
<p>[/html]</p>
<p>[javascript]<br />
<script type="text/javascript"></p>
<p>function attatchLinkBehavior(){
if (document.getElementsByTagName) {
var links = document.getElementsByTagName("a"); // Find all links in page
for (var i=0; i < links.length; i++) {
if (links[i].className.match("progressive")) { // find all links with class "progressive"
links[i].onclick = function() { // Attach event to link
var targetArea = this.getAttribute("rel"); // Area to display Ajax retrieved content
loadContent(targetArea); // Call Ajax function
return false; // Disable hyperlink
};
}
}
}
}</p>
<p>function loadContent(targetArea){
// Do your Ajax call here
}</p>
<p>attatchLinkBehavior();</p>
<p></script><br />
[/javascript]</p>
<p>The id of the div is placed in the link tag using the rel attribute indicating the area to place the content returned by the loadContent() function. When attaching the click event to all hyperlinks with the class "progressive", the function also finds the id of the div where the Ajax content will display and passes it on the loadContent() function.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2007/01/30/search-engine-optimization-part-2-javascript-progressive-enhancement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing RSS Using Magpie and Ajax</title>
		<link>http://aarronwalter.com/2006/12/29/parsing-rss-using-magpie-and-ajax/</link>
		<comments>http://aarronwalter.com/2006/12/29/parsing-rss-using-magpie-and-ajax/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 13:40:26 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/12/29/parsing-rss-using-magpie-and-ajax/</guid>
		<description><![CDATA[DMXZone.com has recently published an article of mine explaining how to parse RSS feeds using an open source PHP library called Magpie, and Ajax to handle the loading of the feeds. The feed reader is scalable to display as many or as few feeds as needed using an array to conveniently configure the script. If [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" title="DMXZone.com" href="http://dmxzone.com">DMXZone.com</a> has recently published <a target="_blank" title="Speedy Feed Reading With Ajax and Magpie" href="http://dmxzone.com/showDetail.asp?TypeId=28&#038;NewsId=12757">an article of mine</a> explaining how to parse <acronym title="Really Simple Syndication">RSS</acronym> feeds using an open source PHP library called <a target="_blank" title="Magpie RSS Parsing Library" href="http://magpierss.sourceforge.net/">Magpie</a>, and Ajax to handle the loading of the feeds. The  feed reader is scalable to display as many or as few feeds as needed using an array to conveniently configure the script. If JavaScript is disabled or unavailable in the browser, the script gracefully degrades to offer a manual method of loading the feed headlines to the page rather than becoming disabled because of the Ajax calls that load them normally. Ajax is used in this example because fetching and parsing many feeds from many sources can result in an excessive page load delay as the script waits for all results to arrive. Using Ajax, you can display the headlines for each feed as they are received, resulting in an improved user experience.</p>
<p>You can<a target="_blank" title="Speedy Feed Reading With Ajax and Magpie" href="http://aarronwalter.com/sandbox/ajax-rss/"> take a look at the finished example</a>, and <a target="_blank" title="Code archive for Speedy Feed Reader with Ajax and Magpie" href="http://aarronwalter.com/sandbox/ajax-rss/code.zip">download the code archive</a> to see how it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/12/29/parsing-rss-using-magpie-and-ajax/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bulletproof Ajax</title>
		<link>http://aarronwalter.com/2006/11/26/bulletproof-ajax/</link>
		<comments>http://aarronwalter.com/2006/11/26/bulletproof-ajax/#comments</comments>
		<pubDate>Sun, 26 Nov 2006 12:53:04 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Books]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/26/bulletproof-ajax/</guid>
		<description><![CDATA[Jeremy Keith of Clear Left has written a new book that will be released soon entitled Bulletproof Ajax. I&#8217;m sure you&#8217;ve heard of or hopefully read Dan Cederholm&#8217;s Bulletproof Web Design, which examines methods of building sites that prevent the display from breaking in all situations. This new book is along the same lines, but [...]]]></description>
			<content:encoded><![CDATA[<p><a title="View product details at Amazon" href="http://www.amazon.com/gp/redirect.html%3FASIN=0321472667%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321472667%253FSubscriptionId=1Y9W2KER5TWSD1341982"><img class="runright" alt="Bulletproof Ajax (Voices That Matter)" src="http://ec1.images-amazon.com/images/P/0321472667.01._SCMZZZZZZZ_V34644461_.jpg" /></a><a target="_blank" title="Adactio, Jeremy Keith's site" href="http://adactio.com/">Jeremy  Keith</a> of <a target="_blank" title="Clear Left" href="http://clearleft.com">Clear Left</a> has written a new book that will be released soon entitled <a title="View product details at Amazon" href="http://www.amazon.com/gp/redirect.html%3FASIN=0321472667%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321472667%253FSubscriptionId=1Y9W2KER5TWSD1341982">Bulletproof Ajax</a>. I&#8217;m sure you&#8217;ve heard of or hopefully read Dan Cederholm&#8217;s <a title="View product details at Amazon" href="http://www.amazon.com/gp/redirect.html%3FASIN=0321346939%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321346939%253FSubscriptionId=1Y9W2KER5TWSD1341982">Bulletproof Web Design</a>, which examines methods of building sites that prevent the display from breaking in all situations. This new book is along the same lines, but focused instead on some new ideas behind the use of Ajax. Jeremy Keith is also the author of the popular book <a title="View product details at Amazon" href="http://www.amazon.com/gp/redirect.html%3FASIN=1590595335%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1590595335%253FSubscriptionId=1Y9W2KER5TWSD1341982">DOM Scripting: Web Design with JavaScript and the Document Object Model</a>, which leads me to believe this forthcoming book will be equally as useful and well written. What&#8217;s interesting about <a title="View product details at Amazon" href="http://www.amazon.com/gp/redirect.html%3FASIN=0321472667%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321472667%253FSubscriptionId=1Y9W2KER5TWSD1341982">Bulletproof Ajax</a> is it will be, to my knowledge, the first book on the market that discusses graceful degradation of Ajax functionality (dubbed Hijax by Kieth himself). Keith has a <a target="_blank" title="Jeremy Keith's Presentation on Hijax at Web Directions South" href="http://domscripting.com/presentations/xtech2006/">nice presentation</a> he gave at Web Directions South this past September that sums up the core concepts of Hijax that is a good read as you wait for his book to be released. An <a target="_blank" title="Web Directions South: Hijax" href="http://www.webdirections.org/hijax/">MP3 of the presentation</a> was to be released as well, but as of yet is not out. You may also want to check out Kieth&#8217;s <a title="Progressive enhancement with Ajax" target="_blank" href="http://adactio.com/journal/959">original article</a> about graceful degradation of Ajax, the <a title="Hijax" href="http://domscripting.com/blog/display/41">follow up</a> where the term Hijax is coined, and <a title="Elsewhere at Adactio" target="_blank" href="http://elsewhere.adactio.com/">his sample application</a> which puts into practice these concepts.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/26/bulletproof-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adobe&#039;s Spry Framework</title>
		<link>http://aarronwalter.com/2006/11/19/adobes-spry-framework/</link>
		<comments>http://aarronwalter.com/2006/11/19/adobes-spry-framework/#comments</comments>
		<pubDate>Sun, 19 Nov 2006 18:36:34 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Tools & Utilities]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/19/adobes-spry-framework/</guid>
		<description><![CDATA[Adobe has thrown their hat in the JavaScript framework ring (which is getting pretty flooded) with the introduction of Spry. What differentiates it from the dozens of other frameworks out there is the focus on XML as a central, dynamic data source fetched by Ajax. Their demos include some very slick utilities including a photo [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe has thrown their hat in the JavaScript framework ring (which is getting pretty flooded) with the introduction of <a title="Adobe Spry Framework" target="_blank" href="http://labs.adobe.com/technologies/spry/">Spry</a>. What differentiates it from the dozens of other frameworks out there is the focus on XML as a central, dynamic data source fetched by Ajax. Their demos include some very slick utilities including a <a title="Adobe Spry Photo Gallery Demo" target="_blank" href="http://labs.adobe.com/technologies/spry/demos/gallery/">photo gallery</a>, an <a title="Adobe Spry RSS Reader Demo" target="_blank" href="http://labs.adobe.com/technologies/spry/demos/rssreader/">RSS reader</a>, and a <a target="_blank" title="Adobe Spry Product Display Demo" href="http://labs.adobe.com/technologies/spry/demos/products/">product display system</a>. The implementation of these complex utilities appears to be very simple. They highlight key sections in the their source code to make clear the ease of development. Of course, they also have the <a title="Adobe Spry Effects Library" target="_blank" href="http://labs.adobe.com/technologies/spry/demos/effects/">very familiar effects library</a> that is virtually identical to its predecessors.</p>
<p>Because they are a bit late to market with their framework, I&#8217;m not sure how willing most people who are already using frameworks will be to abandon the ones they have already grown accustomed to, but people who are just getting started with JavaScript frameworks and Ajax may find this option especially enticing for its ease of use. Here&#8217;s how Adobe wants to position themselves in the framework world:</p>
<blockquote><p><span class="bqstart">‚Äú</span>As we looked at the landscape of Ajax frameworks, we realized that many of them were more oriented to the skills of a programmer and were focused on application development. Based on the needs of the design community, we wanted to put forth an approach that is very &#8220;HTML-centric&#8221; to help them add basic interactivity to their page designs.<span class="bqend">‚Äù</span></p></blockquote>
<p><cite><a target="_blank" href="http://labs.adobe.com/wiki/index.php/Spry:FAQ">Spry FAQ</a></cite></p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/19/adobes-spry-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Gentle Introduction to Ajax</title>
		<link>http://aarronwalter.com/2006/11/13/a-gentle-introduction-to-ajax/</link>
		<comments>http://aarronwalter.com/2006/11/13/a-gentle-introduction-to-ajax/#comments</comments>
		<pubDate>Mon, 13 Nov 2006 22:40:47 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/13/a-gentle-introduction-to-ajax/</guid>
		<description><![CDATA[Jeremy Keith did a nice job at Web Directions South in his talk entitled &#8220;Explaining Ajax&#8221; of gently introducing those unfamiliar, and familiar alike to Ajax and the concepts that make it tick. His presentation walks through the history and evolution of Ajax, and concludes with a fun game of identifying Ajax at work (the [...]]]></description>
			<content:encoded><![CDATA[<p>Jeremy Keith did a nice job at Web Directions South in his talk entitled &#8220;<a target="_blank" title="Explaining Ajax" href="http://www.webdirections.org/explaining-ajax/">Explaining Ajax</a>&#8221; of gently introducing those unfamiliar, and familiar alike to Ajax and the concepts that make it tick. His presentation walks through the history and evolution of Ajax, and concludes with a fun game of identifying Ajax at work (the audience was surprisingly wrong on a few occasions). The presentation podcast and slides are <a target="_blank" title="Explaining Ajax" href="http://www.webdirections.org/explaining-ajax/">free to download</a>.</p>
<p>You may also find his <a target="_blank" title="Jeremy Keith on Hijax" href="http://www.webdirections.org/hijax/">presentation on Hijax</a> equally as interesting, which identifies the Accessibility and Usability shortcomings of Ajax and offers an alternate way of using it to be backwards compatible and allows it to gracefully degrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/13/a-gentle-introduction-to-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Extending the Ajax Mailing List Sign Up System</title>
		<link>http://aarronwalter.com/2006/11/06/extending-the-ajax-mailing-list-sign-up-system/</link>
		<comments>http://aarronwalter.com/2006/11/06/extending-the-ajax-mailing-list-sign-up-system/#comments</comments>
		<pubDate>Mon, 06 Nov 2006 16:56:42 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/06/extending-the-ajax-mailing-list-sign-up-system/</guid>
		<description><![CDATA[A couple of my readers from my recent SitePoint article have asked me about how they could extend the Ajax mailing list sign up system to receive further inputs like the user&#8217;s name and phone number. It&#8217;s actually pretty simple. If you have additional fields in your form, just modify the parameters string in mailingList.js. [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of my readers from my recent <a target="_blank" title="Use Ajax and PHP to Build Your Mailing List" href="http://www.sitepoint.com/article/use-ajax-php-build-mailing-list">SitePoint article</a> have asked me about how they could extend the Ajax mailing list sign up system to receive further inputs like the user&#8217;s name and phone number. It&#8217;s actually pretty simple. If you have additional fields in your form, just modify the parameters string in <strong>mailingList.js</strong>. Here&#8217;s an example:</p>
<p><code>var pars = 'address='+escape($F('address')) + '&#038;firstName='+escape($F('firstName')) + '&#038;lastName='+escape($F('lastName'))  + '&#038;phone='+escape($F('phone'));</code></p>
<p>You can see that you can append as many or as few inputs from your form by just extending the GET string passed to the PHP script. Notice I&#8217;ve added the &#8220;&#038;&#8221; before the next parameter names as is required in any GET string with more than one variable included. Of course you would need to adjust your MySQL table to include these fields, and change <strong>storeAddress.php</strong> to receive the values as well.</p>
<p><code> $address = $_GET['address'];<br />
$firstName = $_GET['firstName'];<br />
$lastName = $_GET['lastName'];<br />
$phone = $_GET['phone'];<br />
</code></p>
<p><code> $addresscheck = mysql_query("SELECT * FROM mailinglist WHERE email='" . $address . "', firstName='" . $firstName . " ', lastName='" . $lastName . "', phone=' . $phone . "' "); </code></p>
<p>It&#8217;s also quite easy to modify this technique to work for things like contact forms, or user input in a <acronym title="Content Management System">CMS</acronym> by simply adjusting your form, and the references to the field names. The principles are still the same.</p>
<p>If you are interested in other useful Ajax tools, you may want to check out <a target="_blank" title="Dustin Diaz's Ajax Contact Form" href="http://www.dustindiaz.com/ajax-contact-updated/">Dustin Diaz&#8217;s Ajax contact form</a>. It&#8217;s pretty clever, and packed with nice effects, but seems to struggle to work in Opera. It&#8217;s a pretty sophisticated example of a contact form.</p>
<p>A word of caution, it&#8217;s pretty easy to get swept up by the allure and ease of implementation of many Ajax/DOM scripting tricks. Always ask yourself how it benefits or hurts the user experience.  If you find yourself adding features because they are cool, yet they negatively impact findability, accessibility, or cross-browser use then you probably should reconsider. James Edwards has written <a target="_blank" title="Ajax and Screenreaders" href="http://www.sitepoint.com/article/ajax-screenreaders-work">a sobering article about Ajax and screen readers</a> (lump search engine spiders in that group too as they are equally as blind) that may bring you back down to earth about the Ajax trend. I should also mention that my <a target="_blank" title="Use Ajax and PHP to Build Your Mailing List" href="http://www.sitepoint.com/article/use-ajax-php-build-mailing-list">article</a> is actually backwards compatible for those without JavaScript enabled, giving us the best of both worlds. The article also uses Ajax specifically to enhance the user-experience by making the impulse action of signing up for a mailing list faster and more convenient.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/06/extending-the-ajax-mailing-list-sign-up-system/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Getting Started/Further With Ajax and PHP</title>
		<link>http://aarronwalter.com/2006/11/01/getting-startedfurther-with-ajax-and-php/</link>
		<comments>http://aarronwalter.com/2006/11/01/getting-startedfurther-with-ajax-and-php/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 19:13:18 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/01/getting-startedfurther-with-ajax-and-php/</guid>
		<description><![CDATA[There are some good books on the market to help introduce you to the ways in which Ajax and PHP can work together to create user-friendly web applications. Apress recently released a book by Lee Babin entitled Beginning Ajax with PHP: From Novice to Professional. The book does a good job of introducing key concepts [...]]]></description>
			<content:encoded><![CDATA[<p><a title="View product details at Amazon" rel="external" href="http://www.amazon.com/gp/redirect.html%3FASIN=1590596676%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1590596676%253FSubscriptionId=1Y9W2KER5TWSD1341982"><img class="runright" alt="Beginning Ajax with PHP: From Novice to Professional (Pro)" src="http://images.amazon.com/images/P/1590596676.01._SCMZZZZZZZ_V39352744_.jpg" /></a>There are some good books on the market to help introduce you to the ways in which <span class="moreinfo" title="Asynchronous JavaScript and XML">Ajax</span> and PHP can work together to create user-friendly web applications. Apress recently released a book by Lee Babin entitled <a title="View product details at Amazon" rel="external" href="http://www.amazon.com/gp/redirect.html%3FASIN=1590596676%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1590596676%253FSubscriptionId=1Y9W2KER5TWSD1341982">Beginning Ajax with PHP: From Novice to Professional</a>. The book does a good job of introducing key concepts by way of useful examples that solve common problems. It&#8217;s currently my favorite for bridging the gap between the two technologies.</p>
<p><a rel="external" href="http://sitepoint.com">SitePoint</a> also has a nice book on <span class="moreinfo" title="Asynchronous JavaScript and XML">Ajax</span> entitled <a title="View product details at Amazon" rel="external" href="http://www.amazon.com/gp/redirect.html%3FASIN=0975841947%26tag=aarronwalterc-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0975841947%253FSubscriptionId=1Y9W2KER5TWSD1341982">Build Your Own Ajax Web Applications</a>. This book is focused specifically on Ajax, not so much about connecting client-side to server-side scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/01/getting-startedfurther-with-ajax-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use AJAX and PHP to Build your Mailing List</title>
		<link>http://aarronwalter.com/2006/11/01/use-ajax-and-php-to-build-your-mailing-list/</link>
		<comments>http://aarronwalter.com/2006/11/01/use-ajax-and-php-to-build-your-mailing-list/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 15:09:49 +0000</pubDate>
		<dc:creator>Aarron</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.aarronwalter.com/2006/11/01/use-ajax-and-php-to-build-your-mailing-list/</guid>
		<description><![CDATA[SitePoint.com has published my article entitled Use AJAX and PHP to Build your Mailing List, which walks you through the development of a simple system that allows your visitors to sign up for a mailing list stored in a MySQL database without having to refresh or leave the page. I use Prototype to send an [...]]]></description>
			<content:encoded><![CDATA[<p><a title="SitePoint.com" target="_blank" href="http://sitepoint.com">SitePoint.com</a> has published my article entitled <a title="Use Ajax and PHP to Build Your Mailing List" target="_blank" href="http://www.sitepoint.com/article/use-ajax-php-build-mailing-list">Use AJAX and PHP to Build your Mailing List</a>, which walks you through the development of a simple system that allows your visitors to sign up for a mailing list stored in a MySQL database without having to refresh or leave the page.  I use <a title="Prototype JavaScript Framework" target="_blank" href="http://www.google.com/url?sa=t&#038;ct=res&#038;cd=1&#038;url=http%3A%2F%2Fprototype.conio.net%2F&#038;ei=eLdIRbPbL5SyqQLr071m&#038;usg=__Y5tFnwkTigXGOGNTCaVW5NXjBFI=&#038;sig2=UHVxzqAcw_tR8LP7TDAkEw">Prototype</a> to send an <span title="Asynchronous JavaScript and XML" class="moreinfo">Ajax</span> call to a PHP script to store the address and return a success or failure message to the HTML page. It&#8217;s a very simple approach, but you&#8217;ll need to know a bit about PHP and JavaScript to grasp the details. A working example of the script is included to help illustrate how it works.</p>
<p>A very useful improvement to this script would be to tie into a mailing list management system via an <acronym title="Application Programming Interface">API</acronym>, which would allow you to store  addresses to a system where you can later send HTML emails to your audience and track views, clicks and other important data. The system I use is <a target="_blank" title="Mail Chimp Mailing List Management System" href="http://mailchimp.com">Mail Chimp</a>, which has a nice PHP class that makes tying into <a target="_blank" title="Mail Chimp API" href="http://www.mailchimp.com/resources/guides/subscriber_api.phtml">their API</a> easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://aarronwalter.com/2006/11/01/use-ajax-and-php-to-build-your-mailing-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

