<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Use Javascript to Parse a Query String</title>
	<link>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/</link>
	<description>Writing, Designing, and Making Money Online</description>
	<pubDate>Fri, 25 Jul 2008 06:38:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Christian</title>
		<link>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-1644</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Fri, 18 Apr 2008 15:51:15 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-1644</guid>
		<description>I just hoping you could give me some advice...right now I have a page where I can enter a URL in a text box and using a command button, decode it. Here is how the function looks:

function decode() {
	var obj = document.getElementById('dencoder');
	var encoded = obj.value;
	obj.value = unescape(encoded.replace(/\+/g,  " "));
}

Can you help me combine the two so when I press the button it parses out the URL as well</description>
		<content:encoded><![CDATA[<p>I just hoping you could give me some advice&#8230;right now I have a page where I can enter a URL in a text box and using a command button, decode it. Here is how the function looks:</p>
<p>function decode() {<br />
	var obj = document.getElementById(&#8217;dencoder&#8217;);<br />
	var encoded = obj.value;<br />
	obj.value = unescape(encoded.replace(/\+/g,  &#8221; &#8220;));<br />
}</p>
<p>Can you help me combine the two so when I press the button it parses out the URL as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jess</title>
		<link>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-1318</link>
		<dc:creator>Jess</dc:creator>
		<pubDate>Fri, 04 Apr 2008 18:03:59 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-1318</guid>
		<description>there's no for each loop in javascript....anybody knows the equivalent for collection?</description>
		<content:encoded><![CDATA[<p>there&#8217;s no for each loop in javascript&#8230;.anybody knows the equivalent for collection?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adila</title>
		<link>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-1273</link>
		<dc:creator>Adila</dc:creator>
		<pubDate>Thu, 03 Apr 2008 10:30:50 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-1273</guid>
		<description>I guess it's the :
for each (var pair in valuePairs)

that trigger it
"for each"</description>
		<content:encoded><![CDATA[<p>I guess it&#8217;s the :<br />
for each (var pair in valuePairs)</p>
<p>that trigger it<br />
&#8220;for each&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-633</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 11 Mar 2008 20:11:19 +0000</pubDate>
		<guid>http://www.earn-web-cash.com/2008/03/04/use-javascript-to-parse-a-query-string/#comment-633</guid>
		<description>I get JS errors when running this code exactly as is. The error seems to be with the for-each loop.  

the error:
Expected'('

char 6 of this line:
 for each (var pair in valuePairs) {

what is missing from your code that is causing this error?</description>
		<content:encoded><![CDATA[<p>I get JS errors when running this code exactly as is. The error seems to be with the for-each loop.  </p>
<p>the error:<br />
Expected&#8217;(&#8217;</p>
<p>char 6 of this line:<br />
 for each (var pair in valuePairs) {</p>
<p>what is missing from your code that is causing this error?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
