I'm developing a mobile website for smartphones and using jquery mobile. first test: http://pastehtml.com/view/bq51kpbmm.html
I have added the content to the page, so it should be scrollable, but when I'm scrolling the header and footer will be disable for the scroll time. :( second test: http://pastehtml.com/view/bq51nmk7i.html
The jquery mobile documentation (http://jquerymobile.com/test/docs/toolbars/bars-fixed.html) gives me the information that data-position="fixed" should disable hiding my header & footer
what am I doing wrong?
I noticed that you are using jQuery 1.0.1, which is the latest stable version however in 1.1.0-RC1 the jQuery Mobile team has made great strides in fixed headers/footers: http://jquerymobile.com/demos/1.1.0-rc.1/docs/toolbars/bars-fixed.html
I recommend using jQuery Mobile 1.1.0-RC1:
Here is a demo using your exact same code but with the above includes instead of the
1.0.1
includes: http://jsfiddle.net/tLNFu/With jQm this is just what happens when scrolling. Try looking around for some jQm widgets that will compliment the jQm framework. I think iScroll 4 does what you're looking for here.
As for the fixed positioning, from the link that you provided in your original question:
There is no mention of any facts that say the toolbars won't disappear on scrolling. That's just the behavior in jQm. Plugins can help with this.