PDA

View Full Version : How to ger Url parameters with Sencha Touch



alexanderHs
19 Aug 2011, 6:10 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?

tierrarara
20 Aug 2011, 4:35 PM
try the next code:



console.log(window.location.hash)



you can parse the hash with a regular expresion




console.debug( window.location.hash.match(/your regex/) )