I was looking for a way to fix elements other than headers and footers. If you look at the JQM (beta3) code starting around line 6085 you have
- $.mobile.fixedToolbars = (function() {
if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
return;
}
var stickyFooter, delayTimer,
currentstate = "inline",
autoHideMode = false,
showDelay = 100,
ignoreTargets = "a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",
toolbarSelector = ".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",
....
I was thinking to just add some more elements to the toolbarSelector variable. I can do this by hacking into JQM and setting
- var $ap = $('body');
instead of the current $('.ui-page-active')
My question: is there a way to do this form an external plugin, because I don't want to touch JQM if possible?
Thanks for ideas.
Cheers
Frequent