<?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>Arlo Carreon &#187; JQuery</title>
	<atom:link href="http://www.arlocarreon.com/blog/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arlocarreon.com</link>
	<description>Web Developer by day, hacker by night</description>
	<lastBuildDate>Sun, 29 Jan 2012 01:08:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What is JQuery?</title>
		<link>http://www.arlocarreon.com/blog/jquery/what-is-jquery/</link>
		<comments>http://www.arlocarreon.com/blog/jquery/what-is-jquery/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 16:26:35 +0000</pubDate>
		<dc:creator>arlo</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://mextekstudios.com/newsite/?p=24</guid>
		<description><![CDATA[For those of you who have never used JQuery before, here is a little head start.  JQuery is one of the best Javacsript libraries out on the web today.  It can be used to transverse DOM elements (HTML), animations, event handling and many many more. JQuery is being used by many well established websites such [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who have never used JQuery before, here is a little head start.  JQuery is one of the best Javacsript libraries out on the web today.  It can be used to transverse DOM elements (HTML), animations, event handling and many many more.</p>
<p>JQuery is being used by many well established websites such as: DELL, Bank of America, DIGG, Google, NBC, CBS, NETFLIX and even the White House (.gov).</p>
<h3><strong>How to use it</strong></h3>
<p>First you need to download JQuery.  Then include the JQuery library in the HEAD section of your HTML code like so.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;/script&gt; </pre>
<p>OR you can always use the latest version of JQuery right off google servers.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>Secondly, you need to choose what type of element you would like to manipulate. For example:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;error-message&quot; style=&quot;background-color:#900; padding:15px; color:#FFF;&quot;&gt;
        Error: You are retarded.
&lt;/div&gt;</pre>
<p>Now that we have our scenario, let&#8217;s see one example on how to use JQuery. When coding JQuery you will most often then not use the following template to wrap your JQuery code.</p>
<pre class="brush: jscript; html-script: true; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
   $(document).ready(function(){

   });
&lt;/script&gt;
</pre>
<p>This ensures that your code will be run when the browser has finished loading the page.  Inside the template you choose your error message using it&#8217;s ID. In JQuery you use $(&#8216;#ID&#8217;) or $(&#8216;.CLASS&#8217;) to access a DOM element.</p>
<pre class="brush: jscript; html-script: true; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
   $(document).ready(function(){
      $( '#error-message' ).click();
   });
&lt;/script&gt;
</pre>
<p>The above code has accessed the click event handler for your DIV, now let&#8217;s make something happen.</p>
<pre class="brush: jscript; highlight: [7]; html-script: true; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;

   $(document).ready(function(){

      $( '#error-message' ).click(function(){

         $( '#error-message' ).hide();

      });

   });

&lt;/script&gt;
</pre>
<p>That&#8217;s all folks! Now when you click anywhere on your error message, your DIV will disappear right before your eyes.  If you are really interested in getting your feet wet with JQuery.  I would use this example and exchange &#8220;hide();&#8221; with different effects, such as sliding up/down, fading out effects (facebook), etc.</p>
<p>You can browse more JQuery effects here: <a href="http://docs.jquery.com/Effects">http://docs.jquery.com/Effects</a><br />
Soon enough I will be posting more mini-JQuery tutorials and simple things like CSS manipulation and AJAX calls.</p>

				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.arlocarreon.com%2Fblog%2Fjquery%2Fwhat-is-jquery%2F&amp;layout=button_count&amp;show_faces=false&amp;width=90px&amp;height=21px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.arlocarreon.com/blog/jquery/what-is-jquery/" data-count="horizontal" data-via="mexitek" data-text="What is JQuery?">Tweet</a></span><span class="mr_social_sharing"><g:plusone size="medium" href="http://www.arlocarreon.com/blog/jquery/what-is-jquery/"></g:plusone></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.arlocarreon.com/blog/jquery/what-is-jquery/" data-counter="right"></script></span><span class="mr_social_sharing"><script type="text/javascript">
							  reddit_url = "http://www.arlocarreon.com/blog/jquery/what-is-jquery/";
							  reddit_title = "What is JQuery?";
							</script>
							<script type="text/javascript" src="http://www.reddit.com/static/button/button1.js"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.arlocarreon.com/blog/jquery/what-is-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

