<?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>DanFolkes &#187; Javascript</title>
	<atom:link href="http://danfolkes.com/index.php/category/code/js/feed/" rel="self" type="application/rss+xml" />
	<link>http://danfolkes.com</link>
	<description>programmers blog</description>
	<lastBuildDate>Wed, 01 Sep 2010 22:02:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JQuery &#8211; Example Documents for Presentation</title>
		<link>http://danfolkes.com/index.php/2010/04/20/jquery-example-documents-for-presentation/</link>
		<comments>http://danfolkes.com/index.php/2010/04/20/jquery-example-documents-for-presentation/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 16:30:58 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://danfolkes.com/?p=550</guid>
		<description><![CDATA[
I gave a presentation at work on JQuery.  
So, I made a documentation page and a example html page with jquery calls at the bottom.
This should be able to help someone out there in internet land.
View the post to see code.

Here is the PDF Documentation:
jQuery Documentation

&#60;html&#62;
	&#60;head&#62;
		&#60;script type=&#34;text/javascript&#34; src=&#34;./jquery-1.4.2.min.js&#34;&#62;&#60;/script&#62;
		&#60;style&#62;
			div &#123;
				border: 1px solid black;
			&#125;
.bottom2 &#123;color:red;&#125;
		&#60;/style&#62;
	&#60;/head&#62;
	&#60;body&#62;
		&#60;div id=&#34;holder&#34;&#62;
			&#60;div [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/index.php/2010/04/20/jquery-example-documents-for-presentation/" ><img src="http://danfolkes.com/wp-content/uploads/2010/04/jquery-selectors.JPG" alt="jquery-selectors" title="jquery-selectors" width="377" height="272" class="alignnone size-full wp-image-559" /></a></p>
<p>I gave a presentation at work on JQuery.  </p>
<p>So, I made a documentation page and a example html page with jquery calls at the bottom.</p>
<p>This should be able to help someone out there in internet land.</p>
<p><strong>View the post to see code.</strong></p>
<p><span id="more-550"></span><br />
Here is the PDF Documentation:<br />
<a href='http://danfolkes.com/index.php/2010/04/20/jquery-example-documents-for-presentation/jquery/' rel='attachment wp-att-556'>jQuery Documentation</a></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;./jquery-1.4.2.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>style<span style="color: #339933;">&gt;</span>
			div <span style="color: #009900;">&#123;</span>
				border<span style="color: #339933;">:</span> 1px solid black<span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">.</span>bottom2 <span style="color: #009900;">&#123;</span>color<span style="color: #339933;">:</span>red<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;holder&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alp_holder&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aaa&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top2&quot;</span><span style="color: #339933;">&gt;</span>
					aaa
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bbb&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top2&quot;</span><span style="color: #339933;">&gt;</span>
					bbb
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ccc&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bottom2&quot;</span><span style="color: #339933;">&gt;</span>
					ccc<span style="color: #339933;">&lt;</span>br<span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#alynnlee.com&quot;</span><span style="color: #339933;">&gt;</span>alynnlee<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>br<span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#alynnlee.com&quot;</span><span style="color: #339933;">&gt;</span>alynnlee<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>br<span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#alynnlee.com&quot;</span><span style="color: #339933;">&gt;</span>alynnlee<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ddd&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bottom2&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>form<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">/&gt;&lt;</span>br <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> <span style="color: #339933;">/&gt;&lt;</span>br <span style="color: #339933;">/&gt;&lt;</span>br <span style="color: #339933;">/&gt;</span>
&nbsp;
						<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option1&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Milk&quot;</span><span style="color: #339933;">&gt;</span> Milk<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option2&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Butter&quot;</span> checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #339933;">&gt;</span> Butter<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option3&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Cheese&quot;</span> checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #339933;">&gt;</span> Cheese<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Submit&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
		<span style="color: #666666; font-style: italic;">//SELECTORS</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;*&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>css<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'padding'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'4px'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;div&quot;).css('border-size', 'solid thin black');</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//$(&quot;*&quot;).css('background-color', 'blue'); //– Select All</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;#aaa&quot;).css('background-color', 'red'); // – Select an object by ID</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;.bottom2&quot;).css('background-color', 'green'); // – select object(s) by Class name</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;#holder &gt; #alp_holder &gt; .bottom2&quot;).css('background-color', 'yellow');</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;input[name*='am']&quot;).val('name contains &quot;am&quot;');</span>
		<span style="color: #666666; font-style: italic;">//ATTRIBUTES:</span>
			<span style="color: #666666; font-style: italic;">//$('div').addClass('ALP_Class');</span>
			<span style="color: #666666; font-style: italic;">//$('div').removeClass('bottom2');</span>
			<span style="color: #666666; font-style: italic;">//$('div').toggleClass('bottom2');</span>
			<span style="color: #666666; font-style: italic;">//$('a').attr('href','#http://google.com');  </span>
			<span style="color: #666666; font-style: italic;">//alert( $('div.bottom2').html() )</span>
			<span style="color: #666666; font-style: italic;">//$('div.bottom2').html('&lt;p&gt;All new content. &lt;em&gt;You bet!&lt;/em&gt;&lt;/p&gt;'); </span>
		<span style="color: #666666; font-style: italic;">//FORMS:</span>
			<span style="color: #666666; font-style: italic;">//$('select.foo option:selected').val();    // get the value from a dropdown select</span>
			<span style="color: #666666; font-style: italic;">//$('select.foo').val();                    // get the value from a dropdown select even easier</span>
			<span style="color: #666666; font-style: italic;">//alert($('input:checkbox:checked').val());        // get the value from a checked checkbox</span>
			<span style="color: #666666; font-style: italic;">//$('input:radio[name=bar]:checked').val(); // get the value from a set of radio buttons</span>
			<span style="color: #666666; font-style: italic;">//$('input:text').val('hi'); 				  //sets all the TEXTBOX values to “hi”</span>
			<span style="color: #666666; font-style: italic;">//$('input:checkbox:checked').attr('checked',false); //- UnCheck all checked checkboxes.</span>
		<span style="color: #666666; font-style: italic;">//Traversing</span>
			<span style="color: #666666; font-style: italic;">//$('a').each(function(index) {</span>
			<span style="color: #666666; font-style: italic;">//	alert(index + ': ' + $(this).text());</span>
			<span style="color: #666666; font-style: italic;">//});</span>
			<span style="color: #666666; font-style: italic;">//$('#alp_holder div').last().css('background-color', 'red'); </span>
			<span style="color: #666666; font-style: italic;">//$('#ddd').parent().css('background-color', 'red'); </span>
		<span style="color: #666666; font-style: italic;">//ANIMATE</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;#ddd&quot;).animate( { fontSize:&quot;1px&quot; } , 1000 );</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;#aaa&quot;).animate( { height:&quot;300px&quot; } , 1000 );</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;#aaa&quot;).hide();</span>
			<span style="color: #666666; font-style: italic;">//$(&quot;#aaa&quot;).hide(1000).show(1000).animate( { height:&quot;300px&quot; } , 1000 );</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#aaa&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>slideUp<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#41;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#aaa&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>slideDown<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
		<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
	<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://danfolkes.com/index.php/2010/04/20/jquery-example-documents-for-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: Check All of the Checkboxes</title>
		<link>http://danfolkes.com/index.php/2009/12/15/jquery-check-all-of-the-checkboxes/</link>
		<comments>http://danfolkes.com/index.php/2009/12/15/jquery-check-all-of-the-checkboxes/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 16:18:32 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://danfolkes.com/?p=412</guid>
		<description><![CDATA[This will check all of the checkboxes inside of an element (div,span,table) with a class of outerClassName 
$(".outerClassName :checkbox").attr('checked', true);
Tip: you must have the jQuery library referenced before using this line of code.
]]></description>
			<content:encoded><![CDATA[<p>This will check all of the checkboxes inside of an element (div,span,table) with a <strong>class</strong> of outerClassName </p>
<p><code>$(".outerClassName :checkbox").attr('checked', true);</code></p>
<p><em>Tip: you must have the jQuery library referenced before using this line of code.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://danfolkes.com/index.php/2009/12/15/jquery-check-all-of-the-checkboxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
