source: trunk/web/addons/job_monarch/lib/extjs/examples/state/README.txt @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 876 bytes
Line 
1This session scope state provider is in use in window/layout.html.
2
3Usage:
4
5get-state.php is included as JS file in the header of any page that needs state information. For a single
6page application, that would be the main page of the application. It is NOT loaded via XHR/Ajax.
7
8save-state.php is included in every page of the application, including pages loaded via ajax.
9
10Inilialization of the SessionProvider looks like:
11Ext.state.Manager.setProvider(new Ext.state.SessionProvider({state: Ext.appState}));
12
13The way the session provider works is when a state change occurs, a cookie is set on the client
14with the new state data. The next time any page is requested on the server, save-state.php
15will see that cookie, save it in the application state and CLEAR THE COOKIE. This way your application
16doesn't have cookies creating unneccessary network latency.
Note: See TracBrowser for help on using the repository browser.