EightShapes/Blocks — Issue #37: Page callback to replace HTML with JS state
Author: humancompanion
Created: 2012-03-01 16:33:34+00:00
State: open
Labels: Feature

In my current prototype I'd prefer to have one HTML page that has JS code that moves it from view to view rather than having several HTML pages that are not as connected as they could be. However, having just one HTML page means not having multiple pages in Blocks to show and navigate through when presenting to the client. Thus I'd like to add a feature whereby one could declare a callback to be run in the config.xml for a page. That page would show up as a distinct page in Blocks and when necessary for display (in page and full screen views) Blocks would call the callback function in order to move my app/view/page into the proper state.

There are some complications for Blocks around what the page id attribute refers to. But otherwise the onus is on the app's JS code to transition the default or root HTML page into the correct view.