Tag Archives: parameter

(JavaScript) Get URL parameters using Javascript

Usage: Let’s say we have an url: http://primera.vremenno.net?foo=yes&bar=no var hash = getUrlVars(); alert(hash['foo']); // returns ‘yes’ alert(hash['bar']); // returns ‘no’

Posted in JavaScript | Also tagged , , , , , , , | Leave a comment

Mapping URLs to action parameters (Zend Framework)

Suppose you want to map /fetch/google.com to the fetch action within the Fetch controller with google.com as a parameter. Zend Framework allows you to create a regex route for this purpose.

Posted in PHP | Also tagged , , , , , , , | Leave a comment