I have an ExtJS application which is invoked with some query string parameters. I would like to know how to read those parameters and their values using ExtJS 4.
My ExtJS application URL will look like the following:
http://localhost:8080/myapp?candidate_id=101&candidate_id=102&candidate_id=103
You can use Ext.Object.fromQueryString
like this
Ext.Object.fromQueryString('candidate_id=101&candidate_id=102&candidate_id=103')
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Object-method-fromQueryString
document.location.href.split('?')[1]
, so you can use this value to for fromQueryString method. this method will give you an object. if candidate_id
mentioned more than once it will give you an array for candidate_id
Özgür Kara 2012-04-04 06:44
location.search
to pass the parameters to Ext.Object.fromQueryString
Jaider 2012-10-24 15:14