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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -