|
|
AjaxUseCases
Description of the Ajax use cases supported by PHOCOA.
Introduction
Developing interactive UI's, whether with AJAX, Flex, Silverlight, or others, requires an RPC infrastructure to seamlessly handle the MVC architecture down to the client level. Also, each client library will need helper client code to easily leverage any RPC infrastructure.
Largely, the idea here is to make it easy to implement UI interactivity with PHOCOA in a manner consistent with the framework and Cocoa concepts where appropriate.
AJAX Use Cases
We'll start by identifying all of the various use cases we expect with AJAX.
- Ajax form submission.
- Implementing dynamism in UI objects; for instance, dynamically loading data for Tree control or Autocomplete.
- Dynamically loading page content on-demand. For instance, loading tab data only when a tab is clicked.
- Handling on-page login.
- Building RIA (Rich Internet Applications) that have sophisticated interactive UI's.
- Enable event-driven programming on the browser.
- Providing interactivity that causes action on the server based on browser activity. For instance, on-page voting.
How It Works
Ajax High-Level Goals:
- Easy-to-use API to add Javascript handlers to events via PHP and YAML
- Event handlers should handle basic/common cases easily, but allow overriding with custom code
- Allow wiring of events to module/page architecture, as well as directly to page instances
There is a complete explanation of the PHOCOA AJAX integration on our web site.
Sign in to add a comment
