Some links within my Android Phonegap application will work in portrait orientation, but not in landscape orientation. The links are jquery event binded:
$('a.button').bind('click',function(){
//do stuff
return false;
});
Testing within a web browser is 100% fine. Only on the device do the links actually die (in landscape mode). Is it possible that if there are too many objects in the DOM, the Phonegap application starts bugging out?
do you use
pageinitevent before the binding to make sure everything in the dom exists? this is phonegap bestpractice and may helpyou can try to replace
bindwith .liveor .delegate. if the links are somehow created with ajax or added to the dom dynamicaly then bind wouldn’t work.