<?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 Bosinger &#187; Javascript</title>
	<atom:link href="http://ryanbosinger.com/blog/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanbosinger.com/blog</link>
	<description>things I learn, as I learn them</description>
	<lastBuildDate>Fri, 18 May 2012 20:45:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Javascript: Count duplicates in an array</title>
		<link>http://ryanbosinger.com/blog/2011/javascript-count-duplicates-in-an-array/</link>
		<comments>http://ryanbosinger.com/blog/2011/javascript-count-duplicates-in-an-array/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 22:12:26 +0000</pubDate>
		<dc:creator>rbosinger</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ryanbosinger.com/blog/?p=414</guid>
		<description><![CDATA[Problem: You have a javascript array that likely has some duplicate values and you would like a count of those values. Solution: Try this schnippet out. &#160; function compressArray&#40;original&#41; &#123; &#160; var compressed = &#91;&#93;; // make a copy of the input array var copy = original.slice&#40;0&#41;; &#160; // first loop goes over every element [...]]]></description>
			<content:encoded><![CDATA[    <div class="problem-solution">
        <p class="problem">
            <strong>
                Problem:
            </strong>
        </p> 
        <blockquote>
			You have a javascript array that likely has some duplicate values and you would like a count of those values.
        </blockquote> 
        
        <p class="solution">
            <strong>
                Solution:
            </strong>
        </p>
        <blockquote>
            Try this schnippet out.
        </blockquote>
    </div>

<span id="more-414"></span>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> compressArray<span style="color: #009900;">&#40;</span>original<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> compressed <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">// make a copy of the input array</span>
	<span style="color: #003366; font-weight: bold;">var</span> copy <span style="color: #339933;">=</span> original.<span style="color: #660066;">slice</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// first loop goes over every element</span>
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> original.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> myCount <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>	
		<span style="color: #006600; font-style: italic;">// loop over every element in the copy and see if it's the same</span>
		<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> w <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> w <span style="color: #339933;">&lt;</span> copy.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> w<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>original<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> copy<span style="color: #009900;">&#91;</span>w<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #006600; font-style: italic;">// increase amount of times duplicate is found</span>
				myCount<span style="color: #339933;">++;</span>
				<span style="color: #006600; font-style: italic;">// sets item to undefined</span>
				<span style="color: #000066; font-weight: bold;">delete</span> copy<span style="color: #009900;">&#91;</span>w<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>myCount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> a <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			a.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> original<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			a.<span style="color: #660066;">count</span> <span style="color: #339933;">=</span> myCount<span style="color: #339933;">;</span>
			compressed.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>a<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: #000066; font-weight: bold;">return</span> compressed<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>




<p>It should go something like this:</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> testArray <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;dog&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;dog&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;cat&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;buffalo&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;wolf&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;cat&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;tiger&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;cat&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> newArray <span style="color: #339933;">=</span> compressArray<span style="color: #009900;">&#40;</span>testArray<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">/*
console: [
	Object { value=&quot;dog&quot;, count=2}, 
	Object { value=&quot;cat&quot;, count=3}, 
	Object { value=&quot;buffalo&quot;, count=1}, 
	Object { value=&quot;wolf&quot;, count=1}, 
	Object { value=&quot;tiger&quot;, count=1}
]
*/</span></pre></div></div>




<p>I hope that&#8217;s useful to somebody.</p>]]></content:encoded>
			<wfw:commentRss>http://ryanbosinger.com/blog/2011/javascript-count-duplicates-in-an-array/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Calling namespaced Javascript from Flash with ExternalInterface&#8230;</title>
		<link>http://ryanbosinger.com/blog/2011/calling-namespaced-javascript-from-flash-with-externalinterface/</link>
		<comments>http://ryanbosinger.com/blog/2011/calling-namespaced-javascript-from-flash-with-externalinterface/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 06:27:40 +0000</pubDate>
		<dc:creator>rbosinger</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ryanbosinger.com/blog/?p=409</guid>
		<description><![CDATA[Edit: This just seemed to eventually start working for me out nowhere. I hate when that happens. If you&#8217;re having the same problem I recommend you go have a beer and come back to it later. This is pissing me off. I have some Javascript that looks like this: var boz = &#123; thing: function&#40;val&#41; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> This just seemed to eventually start working for me out nowhere.  I hate when that happens.  If you&#8217;re having the same problem I recommend you go have a beer and come back to it later.</p>

<p>This is pissing me off.  I have some Javascript that looks like this:</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> boz <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
      thing<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>val<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>val<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>




<p>I want to call it from Flash using ExternalInterface like this:</p>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;boz.thing&quot;</span>, <span style="color: #ff0000;">&quot;what the shit!?&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>




<p>&#8230;but that doesn&#8217;t work.</p>

<p>Somebody asked about this on StackOverflow (<a href="http://stackoverflow.com/questions/2230869/calling-a-namespaced-javascript-function-from-flash" target="_blank">here</a>) and in the accepted answer the guy says the code is basically just eval&#8217;d so it&#8217;ll work just fine.  He has an example like this:</p>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;function (foo) { alert(foo); return true; }&quot;</span>,<span style="color: #ff0000;">&quot;test&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>




<p>That doesn&#8217;t work either.  I can only seem to get it to work with global function calls.  Am I missing something?  There certainly doesn&#8217;t seem to any examples of calling namespaced Javascript from Flash out there.</p>

<p>I&#8217;ll post back if I find out what&#8217;s going on.</p>

</p>Piece.</p>]]></content:encoded>
			<wfw:commentRss>http://ryanbosinger.com/blog/2011/calling-namespaced-javascript-from-flash-with-externalinterface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash 10 + ExternalInterface + FileReference</title>
		<link>http://ryanbosinger.com/blog/2010/flash-10-externalinterface-filereference/</link>
		<comments>http://ryanbosinger.com/blog/2010/flash-10-externalinterface-filereference/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 18:13:28 +0000</pubDate>
		<dc:creator>rbosinger</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ryanbosinger.com/blog/?p=367</guid>
		<description><![CDATA[If you try to call a function within Flash from Javascript and that function has the intention of calling a FileReferenceList.browse() it&#8217;s not going to work. It&#8217;s a security thing. You need to use an in-movie button. Even if you have the JS call a function which calls another function that calls FileReferenceList.browse() it&#8217;s still [...]]]></description>
			<content:encoded><![CDATA[<p>If you try to call a function within Flash from Javascript and that function has the intention of calling a FileReferenceList.browse() it&#8217;s not going to work.  It&#8217;s a security thing.  You need to use an in-movie button.  Even if you have the JS call a function which calls another function that calls FileReferenceList.browse() it&#8217;s still not going to let you do it.  I wasted some time figuring this out.  Just give up. </p>

<p>This guy had the same issue: <a href="http://kevinmusselman.com/blog/2009/01/multiple-file-upload-using-flash/">http://kevinmusselman.com/blog/2009/01/multiple-file-upload-using-flash/</a></p>]]></content:encoded>
			<wfw:commentRss>http://ryanbosinger.com/blog/2010/flash-10-externalinterface-filereference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: Get variables from querystring</title>
		<link>http://ryanbosinger.com/blog/2008/javascript-get-variables-from-querystring/</link>
		<comments>http://ryanbosinger.com/blog/2008/javascript-get-variables-from-querystring/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 17:31:55 +0000</pubDate>
		<dc:creator>rbosinger</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ryanbosinger.com/blog/?p=40</guid>
		<description><![CDATA[Problem: You need to grab some information from the querystring of a URL using only javascript. Solution: Use some code I found! I found this code: /* Client-side access to querystring name=value pairs Version 1.2.3 22 Jun 2005 Adam Vandenberg */ function Querystring&#40;qs&#41; &#123; // optionally pass a querystring to parse this.params = new Object&#40;&#41; [...]]]></description>
			<content:encoded><![CDATA[<a href='http://ryanbosinger.com/blog/wp-content/uploads/2008/08/screenhunter_02-aug-06-1651.gif'><img src="http://ryanbosinger.com/blog/wp-content/uploads/2008/08/screenhunter_02-aug-06-1651.gif" alt="" title="Querystring" width="375" height="156" class="aligncenter size-full wp-image-41" /></a>

<div class="problem-solution">
        <p class="problem">
            <strong>
                Problem:
            </strong>
        </p>
        <blockquote>
            You need to grab some information from the querystring of a URL using only javascript.
        </blockquote>
       
        <p class="solution">
            <strong>
                Solution:
            </strong>
        </p>
        <blockquote>
            Use some code I found!
        </blockquote>
    </div>
<span id="more-40"></span>
<p>I found this code:</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/* Client-side access to querystring name=value pairs
	Version 1.2.3
	22 Jun 2005
	Adam Vandenberg
*/</span>
<span style="color: #003366; font-weight: bold;">function</span> Querystring<span style="color: #009900;">&#40;</span>qs<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// optionally pass a querystring to parse</span>
	<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">params</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">get</span><span style="color: #339933;">=</span>Querystring_get
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>qs <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
		qs<span style="color: #339933;">=</span>location.<span style="color: #660066;">search</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>location.<span style="color: #660066;">search</span>.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>qs.<span style="color: #660066;">length</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Turn &lt;plus&gt; back to &lt;space&gt;</span>
<span style="color: #006600; font-style: italic;">// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1</span>
	qs <span style="color: #339933;">=</span> qs.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\+/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> args <span style="color: #339933;">=</span> qs.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&amp;'</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// parse out name/value pairs separated via &amp;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// split out each name=value pair</span>
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>args.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> value<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> pair <span style="color: #339933;">=</span> args<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'='</span><span style="color: #009900;">&#41;</span>
		<span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066;">name</span> <span style="color: #339933;">=</span> unescape<span style="color: #009900;">&#40;</span>pair<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>pair.<span style="color: #660066;">length</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span>
			value <span style="color: #339933;">=</span> unescape<span style="color: #009900;">&#40;</span>pair<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000066; font-weight: bold;">else</span>
			value <span style="color: #339933;">=</span> <span style="color: #000066;">name</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">params</span><span style="color: #009900;">&#91;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> value
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> Querystring_get<span style="color: #009900;">&#40;</span>key<span style="color: #339933;">,</span> default_<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">// This silly looking line changes UNDEFINED to NULL</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>default_ <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> default_ <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> value<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">params</span><span style="color: #009900;">&#91;</span>key<span style="color: #009900;">&#93;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>value<span style="color: #339933;">==</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> value<span style="color: #339933;">=</span>default_<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">return</span> value
<span style="color: #009900;">&#125;</span></pre></div></div>




<p>
So throw that in your page, and then call that sucker like this:
</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Parse the current page's querystring</span>
<span style="color: #003366; font-weight: bold;">var</span> qs <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Querystring<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></pre></div></div>




<p>
And then just go right on ahead and populate some variables with some query string variables:
</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> v1 <span style="color: #339933;">=</span> qs2.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;name1&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> v3 <span style="color: #339933;">=</span> qs2.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;name3&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;default value&quot;</span><span style="color: #009900;">&#41;</span></pre></div></div>



<div class="google_ads_01">
<script type="text/javascript"><!--
google_ad_client = "pub-1962502741893893";
/* 468x60, created 5/27/08 */
google_ad_slot = "8820555819";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>
And use that information for whatever you needed it for in the first place.  Is nice?
</p>]]></content:encoded>
			<wfw:commentRss>http://ryanbosinger.com/blog/2008/javascript-get-variables-from-querystring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
