Im building a phonegap app for blackberry, using jQueryMobile.
I have a few pages where the content is shorter than the screen height ( blackberry torch, so 480px tall ). In these cases, I can see that the <body> fills the screen height -- as expected -- but the page itself ( the <div data-role="page"> element ) is only as tall as the contents.
This would not be a problem, except that the footer ends up floating 3/4 the way down the screen, instead of at the bottom as I'd prefer. It looks really junky, to be honest.
I've tried using javascript to sniff the screen size and set a min-height on the page, but this doesn't fix the problem.
I'm using PhoneGap and have bound a callback to BlackBerry's hardware back button. The callback gets invoked, and prevents default behavior ( which is to go back to the blackberry home screen ). My binding looks like so:
Now, this works exactly *once*. The first time I use it it correctly causes the app to go "back" one page just like clicking the back button in the header.
However, subsequent clicks of the back button don't work. I know the callback is being invoked, because it the app doesn't quit to the homescreen. But it appears that window.history.back() just magically stops working correctly.
I guess what I want to know is if window.history.back() is the right thing to invoke? Is there a better API call to make?
Sorry for the long title, but I can't think of a better way to word it :)
The problem is simple: I'm packaging a simple jQuery Mobile app in PhoneGap; My app has some external links which I'd like to open in the user's browser, not in the app itself.
I tried setting target="_new" on the anchors, and it works as expected in iOS. But I have to support Android & Blackberry too, and both of those seem to ignore the target, and instead jQueryMobile appears to dynamically load the remote page into the app itself.
I've looked over PhoneGap's API and I can't find an (obvious, at least) API to defer links to the system browser. So I'm wondering if anybody here has any experience with this and can help me out?