Thursday, January 12, 2012

phonegap page redirect not working, property 'location' of object is not a function


I'm trying to do a simple page redirect in phonegap with js. This code is called from within an iframe, so I'm doing:




window.parent.location("event_select.html");



but this doesn't work, and I get the error:



uncaught typerror: property location of object(DOM window) is not a function.



what am I doing wrong?

No comments:

Post a Comment