Code:
<script type="text/javascript">
var querystring = [];
if ( location.search > 1 )
{
var temp = location.search.substring(1).split("&");
for ( var t = 0; t < temp.length; ++t )
{
var pair = temp[t].split(".");
querystring[ pair[0] ] = decodeURIComponent( pair[1] );
}
}
// at this point the variable querystring contains all the key/value pairs from the passed-in query string.
// for example, if the URL was xxx?foo=bar&glomp=the%20widget
// then the querystring variable will consist of
// qs["foo"] == "bar"
// qs["glomp"] == "the widget"
//
// to get all the name/pair combinations out of querystring you could do, for example:
for ( var name in querystring )
{
document.write( name + "==" + qs[name] + "<br/>" );
}
// though please don't really use document.write.
Doing this with jQuery would actually be MORE complex than the plain vanilla JavaScript shown above.