Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14154 closed feature (plugin)

$.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]);

}

Change History (4)

comment:1 Changed 7 years ago by Lucas Fogliarini

Why no?

$.urlParam = function(name){

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

comment:2 Changed 7 years ago by dmethvin

Resolution: plugin
Status: newclosed

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

comment:3 Changed 7 years ago by anonymous

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

comment:4 Changed 7 years ago by scottgonzalez

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

Note: See TracTickets for help on using tickets.