Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Dynamic content #5

Closed
alexandrereyes opened this issue Apr 24, 2012 · 5 comments
Closed

Dynamic content #5

alexandrereyes opened this issue Apr 24, 2012 · 5 comments

Comments

@alexandrereyes
Copy link

If I inject dynamic content, the fixed toolbar doesn't work anymore, perheps some "update" method might work. Tks

@alexandrereyes
Copy link
Author

Tks

@alexandrereyes
Copy link
Author

It didn't work, message: "Uncaught TypeError: Object [object Object] has no method 'fixedToolbar'".

@randomComitter
Copy link

I have the same problem.
I'm binding to the "scrollstop" event:

$( document ).bind( "scrollstop", function( event, data ){
    $( ".ui-footer-fixed" ).fixedtoolbar( "updatePosition" );
});

And I see the following error in console:

uncaught exception: no such method 'updatePosition' for fixedtoolbar widget instance

@keab42
Copy link

keab42 commented Aug 2, 2012

I'm binding to pageshow and I'm seeing exactly the same error.

@yciabaud
Copy link

I had this error on a browser supporting position:fixed. I had to add a condition before calling updatePosition:

if($.mobile.fixedtoolbar.prototype.options.supportBlacklist() && $.support.scrollTop )  {
    $(".ui-footer-fixed" ).fixedtoolbar( "updatePosition" );
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants