<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - jrharshath</title>
<link>http://snipplr.com/users/jrharshath/tags/parse</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 04:49:02 GMT</pubDate>
<item>
<title>(JavaScript) Javascript URL Parser</title>
<link>http://snipplr.com/view/12208/javascript-url-parser/</link>
<description><![CDATA[ <p>This is a script that can parse a URL string, and return all components in a systematic way via an object.
This script is very useful in places where you want to link to a page "dynamically" generated by javascript. This is usually done by adding GET-like params after a # in the URL.

This parser can parse URLs like:

    * http://jrharshath.com/
    * http://jrharshath.com/page?param=value
    * http://jrharshath.com/page?param=value&amp;param2=value2
    * http://jrharshath.com/some?serverparam=somevalue#JSFeature?param=val&amp;param2=val2
    * http://jrharshath.com/some?serverparam=somevalue#AjaxPage?param=val&amp;param2=val2#AnotherAjaxFeature?featureparam=featureval</p> ]]></description>
<pubDate>Sat, 14 Feb 2009 16:54:42 GMT</pubDate>
<guid>http://snipplr.com/view/12208/javascript-url-parser/</guid>
</item>
</channel>
</rss>
