PDA

View Full Version : How to ger Url parameters



alexanderHs
19 Aug 2011, 6:20 PM
How can get a parameter from the url, i mean if have
page1.html#token=12345
i need to get the token from the url, in sencha how it is?

laurentParis
20 Aug 2011, 10:27 PM
Use javascript instead extjs
by my knowledge, only on History they hashed tokens by simple javascript :


Ext.History = (function () {
...
function getHash() {
var href = location.href, i = href.indexOf("#");
return i >= 0 ? href.substr(i + 1) : null;
}
....