<?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>Albert Fama &#187; HTML</title>
	<atom:link href="http://albertfama.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertfama.com</link>
	<description>Freelance Web Programmer - specializing in PHP &#38; MySQL</description>
	<lastBuildDate>Fri, 20 Nov 2009 16:06:31 +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>Getting started with Dojo (part 1)</title>
		<link>http://albertfama.com/php/getting-started-with-dojo-part-1/</link>
		<comments>http://albertfama.com/php/getting-started-with-dojo-part-1/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 02:52:41 +0000</pubDate>
		<dc:creator>Albert Fama</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://albertfama.com/?p=304</guid>
		<description><![CDATA[During this past weekend I was contacted by a client asking if I could implement a few new functionality requests on their site. Basically they wanted to slowly enter the world of Web 2.0, by implementing small tweaks to existing functionality. 
I have been working with this client of a few years now and have [...]]]></description>
			<content:encoded><![CDATA[<p>During this past weekend I was contacted by a client asking if I could implement a few new functionality requests on their site. Basically they wanted to slowly enter the world of Web 2.0, by implementing small tweaks to existing functionality. </p>
<p>I have been working with this client of a few years now and have a great rapport with them. For this most recent project they have no requirements about which JavaScript library to use just as long as it has the functionality which is required by the project. This left me in a little bit of a dilemma, which JavaScript library should I use?</p>
<p>I have tried many libraries in the past and had used the <a rel="nofollow" href="http://developer.yahoo.com/yui/"  title="Yahoo! User Interface Library">Yahoo! User Interface Library (YUI)</a> extensively for a previous project. Although it&#8217;s a good library I have had the urge to try out <a href="http://dojotoolkit.com"  title="Dojo: the JavaScript toolkit">Dojo</a>. I first learned about the library when it came coupled with the <a href="http://zendframework.com/"  title="Zend Framework">Zend Framework</a>. After a few small personal projects I never really used either again.</p>
<p>Doing a little research on <a href="http://dojotoolkit.com"  title="Dojo: the JavaScript toolkit">Dojo</a>&#8217;s current capabilities and verifying that it has the functionality required for my project, I have decided to use Dojo and document my experience here. I&#8217;m hoping that even if you currently use a different JavaScript library that this set of posts will inspire you to try something new for a change.</p>
<p>My first task will be to build something similar to the &#8216;Suggest&#8217; functionality on Google. This afternoon I attempted to find a good tutorial explaining how this is accomplished in Dojo, but could not locate exactly what I wanted. The problem seems to be that all the combo box / auto complete tutorials for dojo create a select menu rather than a simple text box and since this is going to be implemented for a search engine the select menu option is not actually an option. (Get it &#8217;select menu&#8217;, &#8216;option&#8217;&#8230;programming humor my wife loves it.)</p>
<p>Over the next few days I will be working on this project and will have one or two more posts detailing how I implement the functionality. If anyone has not heard of Dojo or has never used it here are a few links to get you started.</p>
<h4>Dojo Links</h4>
<ul>
<li><a href="http://dojotoolkit.com"  title="Dojo: the JavaScript toolkit">Homepage</a></li>
<li><a href="http://dojotoolkit.org/downloads"  title="Dojo: Download">Download</a></li>
<li><a href="http://dojotoolkit.org/docs"  title="Dojo: Documentation">Documentation</a></li>
<li><a href="http://dojotoolkit.org/book/dojo-book-0-9/hello-world-tutorial"  title="Dojo: Hello World Tutorial">Hello World Tutorial</a></li>
</ul>
<p>My next post will assume you already have Dojo <em>installed</em> and have worked through the &#8216;Hello World&#8217; tutorial. Here are some brief notes about installing Dojo.</p>
<h5>Dojo Installation</h5>
<p>When installing Dojo you have three options</p>
<ul>
<li>Load the toolkit directly from <a rel="nofollow" href="http://dev.aol.com/dojo"  title="AOL CDN: Dojo Toolkit">AOL&#8217;s Content Distribution Network </a>(CDN) or from the <a rel="nofollow" href="http://code.google.com/apis/ajaxlibs/documentation/index.html#dojo"  title="Google CDN: Dojo Toolkit">CDN of Google</a>.</li>
<li>Download and store the toolkit on your server</li>
<li>Checkout a copy from the SVN repository (maybe not the greatest idea if your implementing on a live site)</li>
</ul>
<p>I believe the first two options are completely viable for a live website and each have their pros and cons. I choose to download the toolkit and keep it on my server. The upside is that since I have the files locally I can open them up and browse through the code whenever I would like (you can learn a lot this way).</p>
<p>&nbsp;</p>
<blockquote><p><strong>In my opinion&#8230;</strong></p>
<p>When attempting to update an existing site with the newest gadgets available, it is best to take slowly. Implement a few updates at a time, without forcing the users to change the way they use the site. The response received from the users will tell you what is worth it and when you&#8217;ve gone too far.</p></blockquote>

                            <div id="aspdf">
                                <a href="http://albertfama.com/wp-content/plugins/as-pdf/generate.php?post=304">
                                    <span>&nbsp;</span>
                                </a>
                            </div>
                        ]]></content:encoded>
			<wfw:commentRss>http://albertfama.com/php/getting-started-with-dojo-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
