Using Zen Mojo
- About This Book
- Overview of Zen Mojo
- Introduction to Zen Mojo
- Kinds of Zen Mojo Applications
- Basic Definition of a Zen Mojo Page
- Zen Mojo Helper Plugins and Layout Graphs
- Zen Mojo Templates
- The Zen Mojo Content Cache
- Event Handling
- How Zen Mojo Works
- Zen Mojo Version Numbers
- Zen Mojo Tutorials
- Background Information and Tasks
- General-Purpose Client Variables and Functions
- Stashing Values
- Converting a JSON Object to a String
- Establishing Naming Conventions
- Summary of Callbacks and Event Handlers
- Creating the Classes
- Choosing Plugins and Downloading Files
- Using the Zen Mojo Wizard
- Creating Zen Mojo Classes Manually
- Creating a Basic pageContents Definition
- Next Steps
- Defining Layout Methods
- Overview of Layout Methods and Layout Graphs
- Referring to the Current Data Object
- Invoking Template Methods in a Layout Graph
- Specifying Style Attributes in Layout Graphs
- Using the sourceData Property in a Layout Graph
- Using Stashed Values within sourceData
- Using Keys
- Possible Approaches
- Specifying the Initial Keys for a documentView
- Setting Keys and Updating the Layout
- Using the Criteria Argument
- Getting Keys of a documentView
- Working with Document Stacks
- Interacting with Layout Objects
- Methods in This Chapter
- Getting or Setting the Value of a Layout Object
- Refreshing a Layout Object
- Accessing a Layout Object
- Submitting Data to the Server
- Working with Multiple Templates (Explicit Dispatch)
- Introduction to Explicit Dispatch
- Associating Areas with Templates
- Setting the Current Area and Key for the Page
- Accessing the Current Template
- Working with Multiple Templates (Dynamic Dispatch)
- Using Style Sheets
- Additional Steps for Mobile and Hybrid Applications
- Specifying Meta Tags
- Modifying the Page Class to Support Offline Use
- Requirements of the Packaged Application
- Generating Offline Pages
- Tips for Managing Caching During Development
- Upgrade Steps for Beta Program Customers