Horje
jquery deparam Code Example
jquery deparam
/**
 * jQuery.deparam - The oposite of jQuery param. Creates an object of query string parameters.
 * 
 * Credits for the idea and Regex:
 * http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/
*/
(function($){
  $.deparam = $.deparam || function(uri){
    if(uri === undefined){
      uri = window.location.search;
    }
    var queryString = {};
    uri.replace(
      new RegExp(
        "([^?=&]+)(=([^&#]*))?", "g"),
        function($0, $1, $2, $3) { queryString[$1] = $3; }
      );
      return queryString;
    };
})(jQuery);




Javascript

Related
python range in javascript Code Example python range in javascript Code Example
simultaneos mouse buttons clicked js Code Example simultaneos mouse buttons clicked js Code Example
encodeuri hashtag Code Example encodeuri hashtag Code Example
datatable index column server side Code Example datatable index column server side Code Example
how to make a clock in js Code Example how to make a clock in js Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7