Coder Social home page Coder Social logo

jquery-mobile-subpage-widget's Introduction

Version

vNext

Description

A jQuery Mobile widget that allows subpages to be added to pages. This is useful
when a mobile view needs to be structured as a number of partial views with page
transitions between them. This gives a HTML5 mobile app more of a native feel.
For views of this type the added benefit is that only 1 AJAX request is needed.

The functionality provided by this widget is a workaround for the jQuery Mobile
loadPage() function which only loads the first page in an AJAX response. You do
not use this widget on your initial document load.

Usage

Add a stack of child div's with data-role="subpage" or data-role="subpage-dialog"
to a parent div with data-role="page".

Notes

Subpage div's are automatically detached from the parent page div and inserted
into the DOM when the parent page is loaded. When the parent page is hidden, the
child subpage div's are removed from the DOM.

The functionality provided by this widget is a workaround for the jQuery Mobile
loadPage() function which only loads the first page in an AJAX response.

Demo

Please visit the http://m.integra-international.net website  to launch the new
Integra Mobile web app which utilizes the subpage widget. After the web app
launches, press the info button on RHS of the header bar. Next select the
"Integra Mobile" list item. The 'Integra Mobile' page contains a subpage which
is accessible through the 'About' list item.

Sample

A Visual Studio MVC4 sample app is provided.

Change Log

1.3.1, 1.2.0 - 9 Sept 2013

  • Fixed issue #26.

1.3 - 5 March 2013

  • Fixed incompatibility with jQueryMobile 1.3.0's change from storing data in .data('page') to .data('mobile-page'). The plugin now adapts based on the jQueryMobile version in use.

jquery-mobile-subpage-widget's People

Contributors

toddthomson avatar adammessinger avatar

Watchers

James Cloos avatar webcrb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.