jquery/jquery-mobile — Issue #3569: Multipage footer
Author: Eccenux
Created: 2012-02-13 10:45:18+00:00
State: open

Hi. I think current use cases for the footer are very limited for HTML5 apps with no server backend (i.e. not get generated by e.g. PHP).

I think you should a multi-page footer (maybe with a special data-role) that would allow one to have (without the need of duplicating code):
* one footer on each page
* one footer on many pages
* one footer on each page except some pages

An example implementation (working, but not really a ready to deploy patch):
http://pastebin.com/VLbn6YU6

Example usage (only footer):
http://pastebin.com/it3mH9V1

Note that this will work great if you have all-in-one HTML app, not if you use multiple HTML pages, but I find this expected as other HTML pages are probably different in terms of what they do. Also loading other HTML pages doesn't work too good e.g. in PhoneGap (at least back button doesn't work).