O'Reilly logo

Visualforce Development Cookbook by Keir Bowden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a navigation bar

As HTML5 applications may either hide the mobile browser controls or navigate via JavaScript manipulation of the DOM, a different mechanism of navigating between pages must be used. jQuery Mobile provides a navbar widget that may be placed in the header, footer, or body of a page. This widget contains buttons to support navigation to other pages, and may be up to five buttons wide, after which it will wrap onto the next line.

In this recipe we will create mobile Visualforce pages for the Home and About elements of an application with a common navigation bar in the footer of the page. In order to avoid repetition of common content, we will use a template to generate the header and footer information, allowing each page to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required