JQuery Plugin: ParseQuery

When the time comes to grab and parse some values from the QueryString in JavaScript, it can be as simple as one line of code with this nice, compact JQuery plugin called PARSEQUERY.

ParseQuery Download Site: http://plugins.jquery.com/project/parseQuery

Essentially this little plugin turns the query string into a JavaScript object as follows:

URL: www.somelink.com/test.php?Cat=test&Value=hello

  1.  

And thats it. Now you have your QueryString in a tightly wrapped object. You may have to test whether a particular property exists on the created object (i.e. Make sure what your expecting is provided in the object):

  1. span class=”st0″>’some default value’;
  2. }

It is important to note, this component was not developed on the latest release of JQuery. I have tested its use in JQuery 1.4.2 – no issues found.