Page 1 of 1

navbar disappears after service call

Posted: Fri Mar 21, 2014 4:57 pm
by Michael4771079

In my app the navbar is visible when screen opens.
once a service is called and populates the page the navbar disappears
I tried using the code below as js asset, it didnt work for me

I tried "data-tap-toggle=false" in footer properties and this approach works great in browser and as web app but not on iphone from xcode

is there a clever way around this
I want the navbar and footer to remain at the botton of the device screen after service populates the page

this is the code that didnt work

$(document).on('taphold', '[data-role=page]', function(){
$('[data-position=fixed]').fixedtoolbar('toggle');
});

thx


navbar disappears after service call

Posted: Fri Mar 21, 2014 5:05 pm
by Michael4771079

sorry

I forgot to mention if the page is opened the service runs, nav disappears etc, if I navigate to another page and return to the previous page now when the service executes a second time the navbar remains in place


navbar disappears after service call

Posted: Fri Mar 21, 2014 6:03 pm
by Maryna Brodina

Hello!

Could you clarify where did you add this code
pre$(document).on('taphold', '[data-role=page]', function(){
$('[data-position=fixed]').fixedtoolbar('toggle');
});/pre


navbar disappears after service call

Posted: Fri Mar 21, 2014 6:19 pm
by Michael4771079

as js asset Maryna, should it be on screnload?


navbar disappears after service call

Posted: Fri Mar 21, 2014 10:23 pm
by Maryna Brodina

Please post your public app link and steps to reproduce.