10-21-2010 08:02 PM
I've been working on placing fixed header/footer in my blackberry widget. Here's my progress:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html> <head> <meta name="viewport" id="viewport" content="height=device-height,width=device-width,u
It's obviously not the best coding in the world, but it seems to work OK, except I can't scroll the content when it's large.
I searched around, but couldn't find much information regarding it.
It would be nice to have a boilerplate of working header/footer, with hacks built in.
If I could somehow make the middle content overflow to be scrollable with touch screens, then it should be good to go, right? Also, implement other features.. etc...
Solved! Go to Solution.
10-22-2010 08:26 AM
I saw that the new jQuery mobile alpha had static header and footer elements. I haven't had a chance to look at the code behind it, but I think they are hiding the header/footer on a scroll and then repainting them on a stop.
May be a source of info for you... http://jquerymobile.com/
10-23-2010 08:24 AM
Yes, jQuery Mobile is removing headers/footers on scroll and then adding them back in when scrolling is done.
On mobile browsers it is very difficult to try and have static fixed position toolbars like on the desktop web. They typically render their content differently because of the constrained hardware making fixed <div>'s perform poorly. Painting when scrolling is a very expensive process.
10-25-2010 12:01 PM
I have not tried jQuery mobile yet, but some things you may be bumping into that I've seen documented.
Currently, jQuery mobile only supports the Torch and the BlackBerry webkit browser. They plan to bring older browsers into the mix as they continue with jQuery mobile (I think all the way back to the 4.7 browser on the storm).
second, I noticed that some of the jQuery file names contained a "-" . You will have to rename those files and make sure that all of the library links aren't broken between any files for the BlackBerry widget compiler to consume those resources.
just the two big things I can think of that you may be bumping into. I will post up if I get a chance to try out the library.