<?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>Ajax Tutorial &#187; hello world</title>
	<atom:link href="http://tutorialajax.com/web/hello-world/feed" rel="self" type="application/rss+xml" />
	<link>http://tutorialajax.com</link>
	<description>Prototype, jQuery and another Ajax tutorials</description>
	<lastBuildDate>Tue, 11 Nov 2008 14:24:46 +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>Using Prototype</title>
		<link>http://tutorialajax.com/using-prototype.html</link>
		<comments>http://tutorialajax.com/using-prototype.html#comments</comments>
		<pubDate>Sat, 02 Aug 2008 19:09:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Prototype]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[using]]></category>

		<guid isPermaLink="false">http://localhost/ajax-framework/?p=6</guid>
		<description><![CDATA[To using prototype, first we must download it. It&#8217;s only 1 file named &#8216;prototype.js&#8216;. It is about 120kb, a bit too large for a website. but don&#8217;t worry, because the 120kb will do more&#8230;   besides that, we can compress it using any packer. I won&#8217;t describe how to compress the file here. If [...]


Related posts:<ol><li><a href='http://tutorialajax.com/prototype.html' rel='bookmark' title='Permanent Link: Prototype'>Prototype</a></li>
<li><a href='http://tutorialajax.com/the-prototype-function.html' rel='bookmark' title='Permanent Link: The Prototype $() function'>The Prototype $() function</a></li>
<li><a href='http://tutorialajax.com/start-using-jquery.html' rel='bookmark' title='Permanent Link: Start Using jQuery'>Start Using jQuery</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To using prototype, first we must download it. It&#8217;s only 1 file named &#8216;<em>prototype.js</em>&#8216;. It is about 120kb, a bit too large for a website. but don&#8217;t worry, because the 120kb will do more&#8230; <img src='http://tutorialajax.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  besides that, we can compress it using any packer. I won&#8217;t describe how to compress the file here. If you wanna compress the file, you can learn it on &#8220;Compressing JavaScript&#8221;.</p>
<p>To use the prototype, first refer to the <em>&#8216;prototype.js&#8217;</em> as shown below<br />
<code>&lt;script type="text/javascript" src="prototype.js"&gt;<br />
&lt;/script&gt;</code></p>
<p>Place it at the &lt;head&gt; tags of your html. Actually you can place it anywhere  to use prototype, but It always be good to place it on the head because your pages will look cleaner.</p>
<p>And the main function in prototype is</p>
<p><code>document.observe('dom:loaded' , function() {<br />
... -&gt; script code here<br />
});</code></p>
<p>it&#8217;s not necessary to include the function if we want to use prototype, but this function guarantee that all the DOM structure has been loaded before the script run. That is a good habid to always use this function.</p>
<p><strong>The Hello World</strong></p>
<p>It&#8217;s a good idea to start every programming with the &#8216;hello world&#8217;.</p>
<p><code>document.observe('dom:loaded' , function() {<br />
$(document).update("Hello World!!");<br />
});</code></p>
<p>note that we call the sexy function &#8216;<em>$(document).update</em>&#8216; to pop out the text. about further of this function, we will learn it together later&#8230; by now, this is only &#8216;<strong>Using Prototype</strong>&#8216;</p>


<p>Related posts:<ol><li><a href='http://tutorialajax.com/prototype.html' rel='bookmark' title='Permanent Link: Prototype'>Prototype</a></li>
<li><a href='http://tutorialajax.com/the-prototype-function.html' rel='bookmark' title='Permanent Link: The Prototype $() function'>The Prototype $() function</a></li>
<li><a href='http://tutorialajax.com/start-using-jquery.html' rel='bookmark' title='Permanent Link: Start Using jQuery'>Start Using jQuery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://tutorialajax.com/using-prototype.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start Using jQuery</title>
		<link>http://tutorialajax.com/start-using-jquery.html</link>
		<comments>http://tutorialajax.com/start-using-jquery.html#comments</comments>
		<pubDate>Sat, 07 Jun 2008 23:49:12 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[using]]></category>

		<guid isPermaLink="false">http://localhost/ajax-framework/?p=12</guid>
		<description><![CDATA[jQuery main function is the &#8216;$(document).ready() function&#8217;. Although it&#8217;s many way to start jQuery, Always use this function to start using jQuery is good. example:
$(document).ready(function() {
$('.header-company').addClass('highlight');
});
This will add class named &#8216;highlight&#8217; to element that have &#8216;header-company&#8217; class. This is used generally for changing / adding class for CSS. So, when the document was loaded, the [...]


Related posts:<ol><li><a href='http://tutorialajax.com/using-prototype.html' rel='bookmark' title='Permanent Link: Using Prototype'>Using Prototype</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>jQuery main function is the &#8216;<em>$(document).ready()</em> function&#8217;. Although it&#8217;s many way to start jQuery, Always use this function to start using jQuery is good. example:</p>
<p><code>$(document).ready(function() {<br />
$('.header-company').addClass('highlight');<br />
});</code></p>
<p>This will add class named &#8216;highlight&#8217; to element that have &#8216;header-company&#8217; class. This is used generally for changing / adding class for CSS. So, when the document was loaded, the jQuery command will add the CSS Style.</p>


<p>Related posts:<ol><li><a href='http://tutorialajax.com/using-prototype.html' rel='bookmark' title='Permanent Link: Using Prototype'>Using Prototype</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://tutorialajax.com/start-using-jquery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
