<?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>Designoplasty Web Design and Development Blog &#187; AJAX</title>
	<atom:link href="http://designoplasty.com/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://designoplasty.com</link>
	<description>HTML, Javascript, PHP, and Me</description>
	<lastBuildDate>Wed, 08 Sep 2010 09:25:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress Plugins and AJAX</title>
		<link>http://designoplasty.com/2009/09/14/wordpress-plugins-and-ajax/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-plugins-and-ajax</link>
		<comments>http://designoplasty.com/2009/09/14/wordpress-plugins-and-ajax/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 04:36:55 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designoplasty.com/?p=967</guid>
		<description><![CDATA[The last couple of days I&#8217;ve been doing a ton of AJAX programming on some WordPress plugins. Wordpress actually does have one very handy AJAX feature that makes using AJAX just a little easier. I also use jQuery because it&#8217;s really nice for a lot of things including AJAX work.

AJAX is a great technology, and [...]]]></description>
			<content:encoded><![CDATA[<p>The last couple of days I&#8217;ve been doing a ton of AJAX programming on some WordPress plugins. Wordpress actually does have <a href="http://codex.wordpress.org/AJAX_in_Plugins">one very handy AJAX feature</a> that makes using AJAX just a little easier. I also use jQuery because it&#8217;s really nice for a lot of things including AJAX work.</p>

<p>AJAX is a great technology, and while I know what I&#8217;m doing, sometimes even I am amazed at how difficult it is. You&#8217;ve got HTML, Javascript, PHP, and usually database tables to get right. If any one of those isn&#8217;t working it won&#8217;t work.</p>

<p>If you don&#8217;t already have good debugging skills, I wouldn&#8217;t even try it. I very much try to integrate my debugging in with my development to save time. For instance, I have a function that checks to make sure a database call went OK. If not it sends an ajax response with the query and the error string. My calls to AJAX are always prepared to receive and display that error. Even my CSS for the page even handles displaying the returned error string in the most clear way possible. This is code I can use again and again in all my plugins, and if I didn&#8217;t reuse it I would never get anything done..</p>

<p>Now that I&#8217;m getting it down, it&#8217;s so nice. I love AJAX. But the more I work on the web the more I see we need a replacement for JavaScript. I mean most of the language is fine, but it needs to be a real language with the standard object oriented features implemented in the standard way: class, public, private, protected, property getters and setters, etc. The prototype keyword needs to be completely removed from the language. JavaScript and PHP need to align such that AJAX is a natural part of both languages. It&#8217;s possible, but the web is a funny thing and its technologies have a heck of a time moving forward.</p>
]]></content:encoded>
			<wfw:commentRss>http://designoplasty.com/2009/09/14/wordpress-plugins-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX WordPress Spectacular</title>
		<link>http://designoplasty.com/2009/06/20/ajax-wordpress-spectacular/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ajax-wordpress-spectacular</link>
		<comments>http://designoplasty.com/2009/06/20/ajax-wordpress-spectacular/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 03:36:25 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designoplasty.com/?p=794</guid>
		<description><![CDATA[I just finished my first AJAX enabled plugin for a WordPress blog. I&#8217;ll write more about it later, but I used jQuery and it worked out great. I learned about some great things today.

wp_enqueue_script and wp_enqueue_style

These are two awesome functions to get your plugin scripts and styles included in the right order taking into account [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished my first AJAX enabled plugin for a WordPress blog. I&#8217;ll write more about it later, but I used jQuery and it worked out great. I learned about some great things today.</p>

<h3><code>wp_enqueue_script</code> and <code>wp_enqueue_style</code></h3>

<p>These are two awesome functions to get your plugin scripts and styles included in the right order taking into account dependencies, and so easy to use. I love them, I&#8217;m surprised I hadn&#8217;t found them until today. I changed a bunch of my plugins to use them and it also helped me to use the WordPress version of jQuery</p>

<h3><code>(function($) { &hellip; } ) (jQuery)</code></h3>

<p>Use this in WordPress plugins that use jQuery if you want to use the dollar sign shortcut. WordPress disables that because of a conflict, but this will let you use it without interfering with anything else. Put your code where the ellipsis is. Javascript is so bizarre to me, I honestly don&#8217;t have any idea why this works. I&#8217;m very curious though.</p>

<p>Be sure to put function declarations you need to call from other places outside this block though, this can go just inside the body of the function.</p>

<h3>jQuery and AJAX</h3>

<p>jQuery makes AJAX a lot less painful and worry free. I can&#8217;t imagine doing it any other way.</p>


]]></content:encoded>
			<wfw:commentRss>http://designoplasty.com/2009/06/20/ajax-wordpress-spectacular/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
