Page 1 of 1

How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Thu Apr 24, 2014 3:23 am
by mikeman

I have 14 pages and on each page I have same header and footer. I do not have any scrolling up and down. I only need to swipe left or swipe right to go from one page to another page. But my question is how do I keep the header and footer stay put on swipe event of the pages?

Right now, when I swipe, the page got swiped and the header/footer got swiped too.

Thanks


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Thu Apr 24, 2014 4:50 am
by Illya Stepanov

Hi Mike,

There is no good way to make footer and header to stay through the diffrent pages.

Because each page has own footer and header.

But you can use Carousel for your purposes.

Its component consist if items that replaces your pages.

So, you can put your content from your current pages into this items.

You receive just singe page with carousel component after. This component will contain your components.

Please read more about carousel component: http://docs.appery.io/documentation/c...

Regards.


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Thu Apr 24, 2014 1:36 pm
by mikeman

Illya,

My app got rejected by Apple App Store because of this moving header and footer. I would hope that something got to be done in the future that we could "lock" header and footer.

Your alternative using carousel is not a solution at all. I tried that and it is not working.


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Thu Apr 24, 2014 6:38 pm
by Kateryna Grynko

Hi Mike,

Please try adding Swipe event handler for container 'content'.


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Tue Apr 29, 2014 2:56 pm
by mikeman

Katya,

On each page of my app, I have different background image, so when I swipe to new page, the background changes.

I tried to do the swipe event for container "content" but I think it is impossible. Is there anyway to swipe event for the entire mobilecontainer1 as in this picture?

Image


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Tue Apr 29, 2014 6:13 pm
by Maryna Brodina

Hello!

You can create "Swipe" event only for page component.


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Fri May 16, 2014 8:33 pm
by mikeman

Hi,

I know this question is about 17 days ago but I did not have a chance to implement it until today and I think that your solution for Swipe page component only is not working because for each page, I have different background image. So If I just swipe the text component only, then the background is staying.

Is there a way to make footer and header stay fixed?


How to keep footer and header stay fix while swipe left and swipe right the pages?

Posted: Mon May 19, 2014 6:14 am
by Evgene Karachevtsev

Hello Mike,

A built in solution for keeping footer and header stay the same for all pages doesn't exist. jQuery Mobile doesn't have a solution that will share a header and footer among loaded pages.