<?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>Ryan Stemkoski &#187; Zipline</title>
	<atom:link href="http://www.stemkoski.com/category/zipline/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stemkoski.com</link>
	<description>Web design tips &#38; tricks plus anything else I want to talk about...</description>
	<lastBuildDate>Sat, 07 Jan 2012 18:34:18 +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>2010 Yakima Advertising Federation Chinook Awards</title>
		<link>http://www.stemkoski.com/2010-yakima-advertising-federation-chinook-awards/</link>
		<comments>http://www.stemkoski.com/2010-yakima-advertising-federation-chinook-awards/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 16:29:37 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[Advertising Blogs]]></category>
		<category><![CDATA[Judges]]></category>
		<category><![CDATA[Judging]]></category>
		<category><![CDATA[SAF]]></category>
		<category><![CDATA[Spokane Adfed]]></category>
		<category><![CDATA[Spokane Advertising Federation]]></category>
		<category><![CDATA[YAF]]></category>
		<category><![CDATA[Yakima Advertising Federation]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1389</guid>
		<description><![CDATA[Zipline Interactive has been a participating member in Spokane Advertising Federation since we opened shop in 2005. Our team members have attended a number of programs, helped with events, sat on the SAF board, and even helped develop and host the SAF website.    We believe the SAF is an important resource for Spokane creatives. [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stemkoski.com/wp-content/uploads/2010/02/photo.jpg"><img src="http://www.stemkoski.com/wp-content/uploads/2010/02/photo.jpg" alt="" title="photo" width="250" height="333" style="float:right;" /></a>Zipline Interactive has been a participating member in Spokane Advertising Federation since we opened shop in 2005.  Our team members have attended a number of programs, helped with events, sat on the SAF board, and even helped develop and host the SAF website.    </p>
<p>We believe the SAF is an important resource for Spokane creatives. The SAF helps to educate, inspire, and motivate our creative community.  This in turns raises the image of Spokane and all regional companies that rely on the SAF members for their marketing and advertising needs.</p>
<p>This year we had the privilege of hosting the judging for the Yakima Advertising Federation at our office on Madison Street here in Spokane.  It was a great event.  There were a number of good entries from both students and professionals.  </p>
<p>The judges for the event where:  <br />
Kevin Armstrong &#8211; Addison/Kimberly<br />
 Jesse Pierpoint &#8211; Pierpoint Design &#038; Branding <br />
Rick Hosmer &#8211; Klündt | Hosmer<br />
Ryan Stemkoski &#8211; Zipline Interactive</p>
<p>Judging took several grueling hours but in the end kings were crowned. We won’t share the winners now but hopefully once they are announced we can share some of this great work with you.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/2010-yakima-advertising-federation-chinook-awards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Read a Remote Text File with PHP</title>
		<link>http://www.stemkoski.com/how-to-read-a-remote-text-file-with-php/</link>
		<comments>http://www.stemkoski.com/how-to-read-a-remote-text-file-with-php/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 16:34:17 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Remote]]></category>
		<category><![CDATA[Text Files]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1347</guid>
		<description><![CDATA[Reading text files with PHP isn’t really too difficult. I have done it quite a few times but it isn’t something I do everyday. A few weeks ago, I wrote a simple script to read a text file and it has been working great, until today. Originally, the script I wrote was reading a very [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Reading text files with PHP isn’t really too difficult.  I have done it quite a few times but it isn’t something I do everyday.  A few weeks ago, I wrote a simple script to read a text file and it has been working great, until today.  Originally, the script I wrote was reading a very simple text file and it had no problems. Unfortunately, today I tried to use it to read a larger text file and discovered that when reading remote files fopen will stop after a packet is available. If you need to read a larger file this can be a real problem.</p>
<p><strong>Original </strong><br />
Below is the original script that had the problem with larger files, it works great with local files and also with short remote files. Check it out here:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?PHP</span>
	<span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://www.ietf.org/rfc/rfc2396.txt&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;rb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8192</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>Improved</strong><br />
If you have a longer file then you can solve the packet issue by concatenating the file together in several groupings.  An example of the revised and working script has been included below:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?PHP</span>
	<span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://www.ietf.org/rfc/rfc2396.txt&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;rb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 	<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8192</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><em>Note: I have no idea what the text file used in this example is for. I just grabbed it from a Google search because it was large enough to demonstrate the problem I am illustrating.</em></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/how-to-read-a-remote-text-file-with-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Software to Automatically Make a HTML version of a Dynamic Website</title>
		<link>http://www.stemkoski.com/software-to-automatically-make-a-html-version-of-a-dynamic-website/</link>
		<comments>http://www.stemkoski.com/software-to-automatically-make-a-html-version-of-a-dynamic-website/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:00:07 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Website Backup]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1351</guid>
		<description><![CDATA[It seems like there are a million different content management systems out there. Some like the ZLCMS system we use at Zipline are transferrable to another web host but occasionally we have run into web development companies with ‘proprietary’ content management systems. Many of these companies won’t allow their customers to transfer their website to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>It seems like there are a million different content management systems out there.  Some like the ZLCMS system we use at Zipline are transferrable to another web host but occasionally we have run into web development companies with ‘proprietary’ content management systems. Many of these companies won’t allow their customers to transfer their website to another hosting company. Often, when we run into these situations the customers are willing to forfeit their content management just to get away from the web development company they are working with.  On a few of these occasions we have been forced to hand backup an entire HTML website, updating images, links, etc.</p>
<p>Years ago I had a software program that would copy down an entire HTML site fairly accurately.  Unfortunately, as the web transitioned to dynamic websites this software package could not keep up with the advances.</p>
<p>Today, I discovered a website backup utility that has done a fantastic job in my tests.   I backed up several of our complicated dynamic websites and it has done a great job making them work in an HTML version.  If you run into a situation where your website, or your customers website is being held hostage by a web design company this could be the perfect solution for you.</p>
<p>The software is called HTTrack Website Copier and it is a free GPL licensed software package.</p>
<h3><a href="http://download.httrack.com/cserv.php3?File=httrack.exe">Click here to download HTTrack</a></h3>
<p></p>
<p>If you have any comments or questions please leave a comment below. </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/software-to-automatically-make-a-html-version-of-a-dynamic-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Hide the Dotted Border Around Links in Firefox</title>
		<link>http://www.stemkoski.com/how-to-hide-the-dotted-border-around-links-in-firefox/</link>
		<comments>http://www.stemkoski.com/how-to-hide-the-dotted-border-around-links-in-firefox/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 17:21:38 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1180</guid>
		<description><![CDATA[Many of you may have noticed that Firefox adds a 1px dotted border around some active elements. From what I understand, this border is intended to indicate where the user&#8217;s focus is on the page. The unfortunate reality is, these borders are often unsightly for standard users. Many times, developers need to remove them from [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Many of you may have noticed that Firefox adds a 1px dotted border around some active elements. From what I understand, this border is intended to indicate where the user&#8217;s focus is on the page. The unfortunate reality is, these borders are often unsightly for standard users. Many times, developers need to remove them from navigational elements.  This can be done easily with the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
    -moz-<span style="color: #000000; font-weight: bold;">outline-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>You may need to modify this accordingly to your application. The command outline: none; removes the border in current versions of Firefox and the hack -moz-outline-style: none; applies to older browsers.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/how-to-hide-the-dotted-border-around-links-in-firefox/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>What is JavaScript’s Equivalent to PHP strip_tags()</title>
		<link>http://www.stemkoski.com/what-is-javascript%e2%80%99s-equivalent-to-php-strip_tags/</link>
		<comments>http://www.stemkoski.com/what-is-javascript%e2%80%99s-equivalent-to-php-strip_tags/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 15:15:39 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[strip_tags()]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1175</guid>
		<description><![CDATA[A couple of days ago I was working on a project using jQuery where I was traversing through a table and totaling several numeric values. The problem I ran into was that most of these values were wrapped in HTML tags and the tags were not standardized from field to field so a simple replace() [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago I was working on a project using jQuery where I was traversing through a table and totaling several numeric values.  The problem I ran into was that most of these values were wrapped in HTML tags and the tags were not standardized from field to field so a simple replace() was not sufficient.</p>
<p>Unfortunately, much to my dismay jQuery does not have a built in function to strip HTML from a string like the handy strip_tags() PHP offers.  I did some searching online and was able to track down a couple functions written by other developers that were able to do this task.  I have taken my two favorites and combined them into the solution provided below.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #006600; font-style: italic;">/***************************************************
	STRIP HTML TAGS
	****************************************************/</span>
	<span style="color: #003366; font-weight: bold;">function</span> strip_tags<span style="color: #009900;">&#40;</span>html<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//PROCESS STRING</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>arguments.<span style="color: #660066;">length</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			html<span style="color: #339933;">=</span>html.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/&lt;\/?(?!\!)[^&gt;]*&gt;/gi</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> allowed <span style="color: #339933;">=</span> arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> specified <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;[&quot;</span><span style="color: #339933;">+</span>arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>allowed<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #003366; font-weight: bold;">var</span> regex<span style="color: #339933;">=</span><span style="color: #3366CC;">'&lt;/?(?!('</span> <span style="color: #339933;">+</span> specified.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'|'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'))<span style="color: #000099; font-weight: bold;">\b</span>[^&gt;]*&gt;'</span><span style="color: #339933;">;</span>
				html<span style="color: #339933;">=</span>html.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span>regex<span style="color: #339933;">,</span> <span style="color: #3366CC;">'gi'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
				<span style="color: #003366; font-weight: bold;">var</span> regex<span style="color: #339933;">=</span><span style="color: #3366CC;">'&lt;/?('</span> <span style="color: #339933;">+</span> specified.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'|'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">')<span style="color: #000099; font-weight: bold;">\b</span>[^&gt;]*&gt;'</span><span style="color: #339933;">;</span>
				html<span style="color: #339933;">=</span>html.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span>regex<span style="color: #339933;">,</span> <span style="color: #3366CC;">'gi'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//CHANGE NAME TO CLEAN JUST BECAUSE </span>
		<span style="color: #003366; font-weight: bold;">var</span> clean_string <span style="color: #339933;">=</span> html<span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//RETURN THE CLEAN STRING</span>
		<span style="color: #000066; font-weight: bold;">return</span> clean_string<span style="color: #339933;">;</span></pre></div></div>

<p>If you are using this function you probably know your way around JavaScript well enough you don&#8217;t need a complete example but if you do here is a quick and dirty one:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&nbsp;
	/***************************************************
	STRIP HTML TAGS
	****************************************************/
	function strip_tags(html){
&nbsp;
		//PROCESS STRING
		if(arguments.length &lt; 3) {
			html=html.replace(/&lt;\/?(?!\!)[^&gt;]*&gt;/gi, '');
		} else {
			var allowed = arguments[1];
			var specified = eval(&quot;[&quot;+arguments[2]+&quot;]&quot;);
			if(allowed){
				var regex='&lt;/?(?!(' + specified.join('|') + '))\b[^&gt;]*&gt;';
				html=html.replace(new RegExp(regex, 'gi'), '');
			} else{
				var regex='&lt;/?(' + specified.join('|') + ')\b[^&gt;]*&gt;';
				html=html.replace(new RegExp(regex, 'gi'), '');
			}
		}
&nbsp;
		//CHANGE NAME TO CLEAN JUST BECAUSE 
		var clean_string = html;
&nbsp;
		//RETURN THE CLEAN STRING
		return clean_string;
	}
&nbsp;
&lt;/script&gt;
&lt;/head&gt;
&lt;script type=&quot;text/javascript&quot;&gt; 
	var sample_html = '&lt;h1&gt;&lt;a href=&quot;http://www.gozipline.com&quot;&gt;Zipline Interactive&lt;/a&gt;&lt;/h1&gt;';
	document.write('Without Stripping Tags : ' + sample_html);
	var demo = strip_tags(sample_html);
	document.write('With Stripping Tags: ' + demo);
&lt;/script&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>



<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/what-is-javascript%e2%80%99s-equivalent-to-php-strip_tags/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL Dump of the 50 U.S. States</title>
		<link>http://www.stemkoski.com/mysql-dump-of-the-50-us-states/</link>
		<comments>http://www.stemkoski.com/mysql-dump-of-the-50-us-states/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 15:33:11 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[50 States]]></category>
		<category><![CDATA[MySQL Dump]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1172</guid>
		<description><![CDATA[There have been many times I have needed a list of the 50 U.S. States for web applications. I have probably typed these in a dozen times or more over the years. It seems everytime I search for this list as a MySQL dump I am bombarded with data services trying to sell it for [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.stemkoski.com/wp-content/uploads/2009/08/us-states.gif" alt="us-states" title="us-states" width="250" height="190" style="float:right;" />There have been many times I have needed a list of the 50 U.S. States for web applications.  I have probably typed these in a dozen times or more over the years. It seems everytime I search for this list as a MySQL dump I am bombarded with data services trying to sell it for $3.99 or giving it away free with a monthly membership with their useless service. </p>
<p>To make life easier on both you and I have zipped up a MySQL dump of the 50 states and also the District of Columbia which isn’t technically a state. It is available free here for download without any viruses, spam, or special offers.</p>
<h2><a href="http://www.stemkoski.com/downloads/mysql_dump_of_50_US_states.zip">DOWNLOAD HERE</a></h2>
<p>Note: The District of Columbia is the last record in the database. If you don’t want to include it in your application you can easily find and delete it. </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/mysql-dump-of-the-50-us-states/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Big Green Ape Cartoon Character &#8211; Ryan Stemkoski</title>
		<link>http://www.stemkoski.com/big-green-ape-cartoon-character-ryan-stemkoski/</link>
		<comments>http://www.stemkoski.com/big-green-ape-cartoon-character-ryan-stemkoski/#comments</comments>
		<pubDate>Fri, 22 May 2009 14:42:00 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[Big Green Ape]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[BigGreenApe]]></category>
		<category><![CDATA[Cartoon Strip]]></category>
		<category><![CDATA[Kate Yates]]></category>
		<category><![CDATA[Shawn Davis]]></category>
		<category><![CDATA[Thomas Brown]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1157</guid>
		<description><![CDATA[That’s right folks I am officially a cartoon character. My business partner Shawn Davis is developing a cartoon strip about the antics of our office, the web design / advertising industry, his life, and whatever else he feels like illustrating.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.stemkoski.com/wp-content/uploads/2009/05/ryan_stemkoski.jpg" alt="ryan_stemkoski" title="ryan_stemkoski" width="261" height="493" style="float:right;" />That’s right folks I am officially a cartoon character. My business partner Shawn Davis is developing a cartoon strip about the antics of our office, the web design / advertising industry, his life, and whatever else he feels like illustrating. </p>
<p><strong>About Big Green Ape &#8211; Cartoon Strip</strong><br />
So far, the cartoon is really still in the development phase but Shawn has a couple of the characters created and several more in various sketch stages.  The first installment of Big Green APE can be found at: <a target="_blank" href="http://biggreenape.com/?p=146">http://biggreenape.com/?p=146</a>. Shawn has been taking input from everyone in our office, our vendors (Ed), our clients, and as of this week even his mom.  The sexy character to your right is me! Currently I am the only human in this cartoon strip, everyone else is some variety of animal.</p>
<p><strong>So far the list of characters includes:</strong><br />
Shawn as the Big Green Ape &#8211; <a target="_blank" href="http://biggreenape.com/?p=137">View</a><br />
Thomas as Skat Kat – <a target="_blank" href="http://biggreenape.com/?p=143">View</a><br />
Me as Myself complete with polo and iPhone – <a target="_blank" href="http://biggreenape.com/?p=151">View</a><br />
Deanna as an Unnamed Kangaroo – <a target="_blank" href="http://biggreenape.com/?p=158">View Sketch</a></p>
<p><strong>Characters Still to come:</strong><br />
Kate possibly as a Flamingo<br />
Karen as ?<br />
Jessica as ?<br />
Sheldon as a Kiwi or ?<br />
Megan as ?<br />
Random Cliet as ?<br />
Random Sales as ?</p>
<p>If you have any good ideas for a strip or for characters leave a comment and I will pass it on.  Hopefully as soon as the strip gets up and running I will be featuring each installment here so that my subscribers can enjoy them. If you want to keep up with the development of the cartoon strip you can find more information on it at Shawn’s Blog <a href="http://www.biggreenape.com">http://www.biggreenape.com</a>.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/big-green-ape-cartoon-character-ryan-stemkoski/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stupid Simple jQuery Accordion Menu</title>
		<link>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/</link>
		<comments>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 14:02:25 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1079</guid>
		<description><![CDATA[This is a very simple tutorial on how to implement an accordion style menu using jQuery to manipulate a grouping of DIV elements.  This system is so simple it could be easily utilized by someone who has little or no jQuery experience.  

This example provides a complete overview of the implementation as well as a demo and code download to help you get the system running on your web based application.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.stemkoski.com/wp-content/uploads/2009/03/roland22fr5accordion.jpg" alt="roland22fr5accordion" title="roland22fr5accordion" width="250" height="228" style="float:right;" />Last week I had to create an accordion style menu for a project.  Accordion menus are a very, very handy tool to show and hide information as needed.  I have used them on sites like http://www.spokanesymphony.org and http://2008-2009.spokanesymphony.org. While the accordion system I used on these sites worked well, I decided to write my own using jQuery with the goal of making it as simple as possible. </p>
<p>I have found many of the existing accordion menu systems to be bloated and difficult to understand.  I knew there had to be an easier way to create an accordion menu.  Instead of using a list like most alternate systems, this system uses a grouping of DIV elements with specific names.  </p>
<h3>ORIGINAL VERSION: <a href="http://www.stemkoski.com/downloads/jquery-accordion-menu/example.htm" target="_blank">DEMO</a> | <a href="http://www.stemkoski.com/downloads/jquery-accordion-menu.zip">DOWNLOAD</a></h3>
<h3>UPDATED VERSION: <a href="http://www.stemkoski.com/downloads/jquery-accordion-menu-update/example.htm" target="_blank">DEMO</a> | <a href="http://www.stemkoski.com/downloads/jquery-accordion-menu-update.zip">DOWNLOAD</a> *</h3>
<p><em><strong>* Note: The updated version was released on 3/25/10 and it is slightly different than the example detailed in this post, however, installation is virtually the same. The updated version addresses a number of frequent feature requests from fans of the script. These include use of  jQuery 1.4.2, adding a mouseover effect, adding a selected effect, and the ability to close open menus by clicking their header.</strong></em></p>
<p>Note: Here is an <a href="http://www.stemkoski.com/downloads/jquery-accordion-menu-open.zip">example of how to pin open the first item</a> and an <a href="http://www.stemkoski.com/downloads/jquery-accordion-menu-pin-open.zip">example of how to select any item to pin open on load</a>.
</p>
<p>
<div style="border-bottom: 1px solid #000000;">&nbsp;</div>
</p>
<p>&nbsp; </p>
<h3 style="padding-bottom: 8px;">How to implement this jQuery accordion style menu:</h3>
<h4>Step 1 &#8211; Include jQuery:</h4>
<p>For a jQuery beginner the first thing you need to do is to include the jQuery library.  Google hosts the library so you can link to it there.  This can be done by putting the following code in the head of your document:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<h4>Step 2: &#8211; Create the JavaScript</h4>
<p>Next you need to create a blank JavaScript file.  For the example, this file is called javascript.js.  This file will contain the jQuery code required for the menu.  Once you save the file include it in the head of your document with the proper path just as we did the jQuery library in Step 1. An example of the JavaScript code to include in this document is shown below:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//ACCORDION BUTTON ACTION	</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.accordionButton'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.accordionContent'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'normal'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'normal'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//HIDE THE DIVS ON PAGE LOAD	</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.accordionContent&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h4>Step 3 &#8211; Create the CSS: </h4>
<p>Now we need to create a CSS document with our two selectors accordionButton and accordionContent and then include that in the head of the document.  Examples of these selectors are included below.  The color, contents, and visual formatting can all be manipulated.  It is important these elements retain their float: left or display: inline-block property so that they will display inline.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrapper</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.accordionButton</span> <span style="color: #00AA00;">&#123;</span>	
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#003366</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.accordionContent</span> <span style="color: #00AA00;">&#123;</span>	
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#95B1CE</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h4>Step 4 &#8211; Create the HTML:</h4>
<p>Now we need to create the HTML we’re going to manipulate.  For this example we will keep the page very, very simple. In a more complicated HTML document you need to make sure the two classes used for the accordion DIV items are not used elsewhere.  jQuery will be looking for the class of the element so if it is present elsewhere in the HTML document it will cause some unexpected problems. The full HTML document also displaying the includes is shown below:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=iso-8859-1&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>jQuery Accordion Style DIV Menu<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style/format.css&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style/text.css&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;includes/javascript.js&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wrapper&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionButton&quot;</span>&gt;</span>Button 1 Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionContent&quot;</span>&gt;</span>Content 1<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>Long Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionButton&quot;</span>&gt;</span>Button 2 Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionContent&quot;</span>&gt;</span>Content 2<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>Medium Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionButton&quot;</span>&gt;</span>Button 3 Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionContent&quot;</span>&gt;</span>Content 1<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>Short Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionButton&quot;</span>&gt;</span>Button 4 Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;accordionContent&quot;</span>&gt;</span>Content 4<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>Extra Long Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>Notice that we have alternating rows with the styles accrodionButton and accordionContent.  Clicking accordionButton will trigger the drop of the next instance of accordionContent. It is very important these elements alternate properly with nothing inbetween for the system to function properly.  Each element can contain HTML, nested divs, or other styling elements.</p>
<h4>Step 5 &#8211; Check out the Result!: </h4>
<p>Now we have all of our code we need.  View the system in the browser and it should work great.  Clicking on each button will cause the content below it to drop.  The content will retract if another button is clicked. (Note: If you needed to keep the content elements open after a click on a seperate button instead of having them retract you can do this easily by removing this line from the javascript.js include:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.accordionContent'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'normal'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h4>View a complete example or download a complete example:</h4>
<p><a href="http://www.stemkoski.com/downloads/jquery-accordion-menu/example.htm" target="_blank">Click here to view the demo of the accordion style jQuery menu</a></p>
<p><a href="http://www.stemkoski.com/downloads/jquery-accordion-menu.zip" target="_blank">Click here to download the demo files for the jQuery accordion style menu</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/feed/</wfw:commentRss>
		<slash:comments>431</slash:comments>
		</item>
		<item>
		<title>Change the Style of DIV on Mouseover with jQuery</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/</link>
		<comments>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:05:54 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061</guid>
		<description><![CDATA[JavaScript libraries are fantastic. I know many good web developers who have been reluctant to learn more JavaScript than they absolutely need to. I admit JavaScript can be confusing but it is a very powerful tool, especially with the power of AJAX. Below are a couple simple examples of very powerful techniques that can be [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.stemkoski.com/wp-content/uploads/2009/03/jquery-jquery1.jpg" alt="jquery-jquery1" title="jquery-jquery1" width="250" height="250" style="float:right;" />JavaScript libraries are fantastic.  I know many good web developers who have been reluctant to learn more JavaScript than they absolutely need to.  I admit JavaScript can be confusing but it is a very powerful tool, especially with the power of AJAX.  Below are a couple simple examples of very powerful techniques that can be achieved very quickly and cleanly using jQuery.</p>
<h4>Example 1: Change the Style of a DIV element on Mouseover</h4>
<p>Lists are a great tool for navigations but many times they don’t work or are too difficult to style.  Lets say you wanted to make a vertical navigation out of DIV elements but you wanted them to change styles on rollover.  Your HTML may look something like:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;leftColumn&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidenavOff&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>NAVIGATION ITEM 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidenavOff&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>NAVIGATION ITEM 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidenavOff&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>NAVIGATION ITEM 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidenavOff&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>NAVIGATION ITEM 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Very simple and clean.  Notice there is no inline JavaScript for the rollover effect.  The beauty of jQuery is it can handle events for elements without nasty inline JavaScript.  Here is the jQuery JavaScript to add rollover effects to this navigation:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.sidenavOff&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    	$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sidenavOver&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseout</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    	$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sidenavOff&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Easy aye? Analyzing the code you can see simple mouseover and mouse out functions where we’re removing the current class and adding the proper one for the time in the event.  This will effect any DIV with the class of .sidenavOff on mouseover.  </p>
<h4>Example 2:  Including HTML content in a Page using jQuery and Ajax</h4>
<p>Suppose we had a div on our page with the ID of #lookup.  When clicked #lookup1 we wanted the content from a file called search.htm to load in another DIV with the id #lookupContent.  </p>
<p>With HTML you could link to a new HTML file that had this adjustment made.  With standard JavaScript you could make a very lengthy AJAX request to load the page or with jQuery you can do it with ease.  For example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#lookup'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#lookupContent'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'search.htm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This code will load the file search.htm and replace the contents of #lookupContent with whatever is in the search.htm file.  Cake.</p>
<p>I will give a few more, simple jQuery examples in the near future.  I am trying to convince as many developers as I can to take a look at the various JavaScript frameworks.  There is a reason they’re such a hot topic these days.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>GoDaddy Dedicated Server Hosting Blocks Port 25</title>
		<link>http://www.stemkoski.com/godaddy-dedicated-server-hosting-blocks-port-25/</link>
		<comments>http://www.stemkoski.com/godaddy-dedicated-server-hosting-blocks-port-25/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 03:12:06 +0000</pubDate>
		<dc:creator>Ryan Stemkoski</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zipline]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.stemkoski.com/?p=1056</guid>
		<description><![CDATA[Today I was helping a client troubleshoot a problem with a dedicated server he has at GoDaddy. For some reason, a web form created by another developer was having problems sending on his GoDaddy server. After reviewing the code, I determined it was likely an external issue. Some testing of PHP mail() and phpMailer lead [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.stemkoski.com/wp-content/uploads/2009/03/patrick.jpg" alt="patrick" title="patrick" width="250" height="250" style="float:left;" />Today I was helping a client troubleshoot a problem with a dedicated server he has at GoDaddy.  For some reason, a web form created by another developer was having problems sending on his GoDaddy server. After reviewing the code, I determined it was likely an external issue.  Some testing of PHP mail() and phpMailer lead me to the conclusion that GoDaddy was blocking port 25.</p>
<p>Luckily there is an easy workaround to this problem.  Much like with their CURL functionality GoDaddy has a relay server that can be used to send email.  The address for the GoDaddy dedicated server email relay is:</p>
<p>k2smtpout.secureserver.net</p>
<p>I did read in the documentation that the relay server limits you to 1000 emails per day so if you need to send more than that I would suggest contacting GoDaddy support. Below are some instructions on how to setup the relay on both Linux and Windows servers.  This text was pulled directly from the GoDaddy website.</p>
<p>In Linux, Plesk uses qmail as the default mail server. The configuration file /var/qmail/control/smtproutes needs to have the line :k2smtpout.secureserver.net in it so that it will work properly (the colon is necessary).</p>
<p>In Windows, if Plesk is installed, MailEnable uses a &#8220;smarthost&#8221; of k2smtpout.secureserver.net.</p>
<p>This solution seemed to work fine. Also, as a note, from the documentation I found it would appear that most GoDaddy dedicated servers come pre-configured to use the relay.  However, if you’re reading this yours probably didn’t, or some tool has screwed up your settings and now you have to fix them. Good Luck.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.stemkoski.com/godaddy-dedicated-server-hosting-blocks-port-25/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

