Skip to main content

Bug Tracker

Side navigation

#14154 closed feature (plugin)

Opened July 19, 2013 02:09PM UTC

Closed July 19, 2013 02:30PM UTC

Last modified July 19, 2013 03:27PM UTC

$.urlParam().appendTo(jqueryapi.utilities)

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:
Description

Why no?

code:

$.urlParam = function(name){

return decodeURI((RegExp(name + '=' + '(.+?) (&|$)').exec(location.search)||[,null])[1]);

}

Attachments (0)
Change History (4)

Changed July 19, 2013 02:14PM UTC by Lucas Fogliarini comment:1

Why no?

$.urlParam = function(name){

return decodeURI((RegExp(name + '=' + '(.+?) (&|$)').exec(location.search)
[,null])[1]);
}

Changed July 19, 2013 02:30PM UTC by dmethvin comment:2

resolution: → plugin
status: newclosed

Sure, write a plugin to do this if you want.

Changed July 19, 2013 02:47PM UTC by anonymous comment:3

this function is very useful, why no add in native jquery api?

Changed July 19, 2013 03:27PM UTC by scottgonzalez comment:4

I already told you when you filed the original ticket. Utility methods that aren't needed by jQuery itself won't be added.