<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-23105477.post115185885111464907..comments</id><updated>2011-04-29T10:15:13.453-04:00</updated><category term='Personal'/><category term='Adobe'/><category term='Flash'/><category term='Browsers'/><category term='Luminis'/><category term='CSS'/><category term='Accessibility'/><category term='HTML'/><category term='ActionScript'/><category term='Flex'/><category term='ComCenter'/><category term='XML'/><category term='Hofstra'/><category term='JavaScript'/><category term='Fun'/><category term='Java'/><category term='ColdFusion'/><category term='Blog'/><category term='Web'/><category term='Apollo'/><title type='text'>Comments on Web Development Central: Parsing URL Variables With JavaScript</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.webdevelopmentcentral.net/feeds/115185885111464907/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html'/><author><name>HUWebDev</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-23105477.post-7963901092875849683</id><published>2011-04-29T10:15:13.453-04:00</published><updated>2011-04-29T10:15:13.453-04:00</updated><title type='text'>Here&amp;#39;s some code which can be run at page star...</title><summary type='text'>Here&amp;#39;s some code which can be run at page startup which will create a map of the URL args. It does not handle same-named args with an array suffix (&amp;quot;[]&amp;quot;) like PHP does, but could easily be expanded to do so...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;var MyApp = {&lt;br /&gt;  urlArgs:{}&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;MyApp.processUrlArgs = function() {&lt;br /&gt;    this.urlArgs = {};&lt;br /&gt;    var str = window.location.search ?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/7963901092875849683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/7963901092875849683'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1304086513453#c7963901092875849683' title=''/><author><name>Stephan Beal</name><uri>http://www.blogger.com/profile/09644587225944529456</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1924750451'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-3703000640763663196</id><published>2011-02-18T17:06:53.133-05:00</published><updated>2011-02-18T17:06:53.133-05:00</updated><title type='text'>You can build your own javascript library that doe...</title><summary type='text'>You can build your own javascript library that does this at &lt;a href="http://jpaq.org/" rel="nofollow"&gt;http://jpaq.org/&lt;/a&gt;.  For instance, if you are trying to get the &amp;quot;name&amp;quot; paramater, you can access it via the jPaq.GET[&amp;quot;name&amp;quot;] variable.  When you download this build, you also get two other useful URI functions.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/3703000640763663196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/3703000640763663196'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1298066813133#c3703000640763663196' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-69471131'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-8048676430176187677</id><published>2010-07-16T23:43:37.869-04:00</published><updated>2010-07-16T23:43:37.869-04:00</updated><title type='text'>Great, I was wondering how to do that.  To put the...</title><summary type='text'>Great, I was wondering how to do that.  To put the name-value pairs into a global namespace, you can do:&lt;br /&gt;&lt;br /&gt;(before the function declaration)&lt;br /&gt;window.urlVars = new Object();&lt;br /&gt;&lt;br /&gt;(and then within the loop)&lt;br /&gt;window.urlVars[name] = value;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/8048676430176187677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/8048676430176187677'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1279338217869#c8048676430176187677' title=''/><author><name>Jeremy</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1319822880'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-5791494950624957410</id><published>2010-01-22T05:35:09.482-05:00</published><updated>2010-01-22T05:35:09.482-05:00</updated><title type='text'>Very good, simple &amp;amp; effective, used this on my...</title><summary type='text'>Very good, simple &amp;amp; effective, used this on my site, saved me some time...&lt;br /&gt;thanks</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/5791494950624957410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/5791494950624957410'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1264156509482#c5791494950624957410' title=''/><author><name>moonpixel</name><uri>http://www.blogger.com/profile/04538416527684502693</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-702624450'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-1232388116090756230</id><published>2009-08-01T13:33:44.406-04:00</published><updated>2009-08-01T13:33:44.406-04:00</updated><title type='text'>how to parse URLs in JS you can find &lt;a href="http...</title><summary type='text'>how to parse URLs in JS you can find &lt;a href="http://with-love-from-siberia.blogspot.com/2009/07/url-parsing-in-javascript.html" rel="nofollow"&gt;here&lt;/a&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/1232388116090756230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/1232388116090756230'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1249148024406#c1232388116090756230' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-774745974'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-5853813122384149250</id><published>2008-06-23T03:15:00.000-04:00</published><updated>2008-06-23T03:15:00.000-04:00</updated><title type='text'>Rahul says:&lt;br&gt;Great!!It worked.I had to retrive V...</title><summary type='text'>Rahul says:&lt;BR/&gt;Great!!It worked.I had to retrive Values from URL and desired values were in my JS.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/5853813122384149250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/5853813122384149250'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1214205300000#c5853813122384149250' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1890820518'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-3419715231417381136</id><published>2007-12-19T11:53:00.000-05:00</published><updated>2007-12-19T11:53:00.000-05:00</updated><title type='text'>It works fine! I translate the article in italian ...</title><summary type='text'>It works fine! I translate the article in italian in &lt;A HREF="http://labs.black-tomato.com/experiments.php?action=view&amp;id=57" REL="nofollow"&gt;my tech blog&lt;/A&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/3419715231417381136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/3419715231417381136'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1198083180000#c3419715231417381136' title=''/><author><name>Alessio</name><uri>http://www.blogger.com/profile/04673736135585515000</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1705023974'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-103406776848065104</id><published>2006-12-18T16:01:00.000-05:00</published><updated>2006-12-18T16:01:00.000-05:00</updated><title type='text'>This function works great!  I have created (using ...</title><summary type='text'>This function works great!  I have created (using your code) a function that retrieves the value of a passed in parm name.  Every thing works well except I also need to strip out any URL special character replacements (spaces, *, etc.).  Do you have any suggestions for this?&lt;br /&gt;&lt;br /&gt;Thanks</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/103406776848065104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/103406776848065104'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1166475660000#c103406776848065104' title=''/><author><name>Larry</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-594109162'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-3986044427327298605</id><published>2006-11-01T13:59:00.000-05:00</published><updated>2006-11-01T13:59:00.000-05:00</updated><title type='text'>Yep, you're right! Thanks for the bug catch!</title><summary type='text'>Yep, you're right! Thanks for the bug catch!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/3986044427327298605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/3986044427327298605'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1162407540000#c3986044427327298605' title=''/><author><name>HUWebDev</name><uri>http://www.blogger.com/profile/04222422833791224335</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1674769744'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-6369238218169580887</id><published>2006-11-01T13:52:00.000-05:00</published><updated>2006-11-01T13:52:00.000-05:00</updated><title type='text'>Wouldn't it be this?

 var name = nvPair[0];
 var ...</title><summary type='text'>Wouldn't it be this?&lt;br /&gt;&lt;br /&gt; var name = nvPair[0];&lt;br /&gt; var value = nvPair[1];</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/6369238218169580887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/115185885111464907/comments/default/6369238218169580887'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html?showComment=1162407120000#c6369238218169580887' title=''/><author><name>Joseph</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/06/parsing-url-variables-with-javascript.html' ref='tag:blogger.com,1999:blog-23105477.post-115185885111464907' source='http://www.blogger.com/feeds/23105477/posts/default/115185885111464907' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-893771289'/></entry></feed>
