Hybrid View
-
6 Aug 2007 4:19 AM #1
Does extjs have functionality for getting url params
Does extjs have functionality for getting url params
getting the url parameters or do I need to parse it myself?
-
6 Aug 2007 6:05 AM #2
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
6 Aug 2007 6:05 AM #3

Code:// separating the GET parameters from the current URL var getParams = document.URL.split("?"); // transforming the GET parameters into a dictionnary var params = Ext.urlDecode(getParams[getParams.length - 1]);
-
7 Aug 2007 1:51 AM #4
-
7 Aug 2007 3:22 AM #5
Make sure that getParams.length is > 1, otherwise there is nothing to parse.
And since there can only be one "?" in a properly formed URL:
will do.Code:Ext.urlDecode(getParams[1]);
-
6 Dec 2012 5:21 AM #6
-
28 Jan 2013 4:35 AM #7
this is use full code
this is use full code
this is use full code


Reply With Quote

