windows phone 8 - Navigation in phonegap application fails when I use GET variables -
i've created small 2 page application, fails when navigate page using variables, like
window.location.href = 'game.html?id=2'
navigating using www/game.html
works great, breaks logic. tell me why is?
the above window.location.href
throws
cordovabrowser_navigationfailed :: www/game.html?id=2
try below code has work.
var dirpath = location.href.replace(/\\/g, '/').replace(/\/[^\/]*$/, ''); window.location = dirpath +"/game.html";
Comments
Post a Comment