Geeks With Blogs

Phubar Baz Musings of an HTML5 Programmer November 2011 Entries
Getting Query Parameters in Javascript
I find myself needing to get query parameters that are passed into a web app on the URL quite often. At first I wrote a function that creates an associative array (aka object) with all of the parameters as keys and returns it. But then I was looking at the revealing module pattern, a nice javascript design pattern designed to hide private functions, and came up with a way to do this without even calling a function. What I came up with was this nice little object that automatically initializes itself ......

Posted On Monday, November 21, 2011 2:14 PM

Copyright © PhubarBaz | Powered by: