source: Dev/branches/rest-dojo-ui/client/pages/session.html @ 263

Last change on this file since 263 was 263, checked in by hendrikvanantwerpen, 13 years ago
  • [Client] Finished page framework. See rft/ui/content.js or test files for details.
  • [Client] Allow login by pressing Enter.
  • [API] On exception include details in json response.
  • [Server Use Exceptions when save() fails, iso return values.
File size: 808 bytes
Line 
1<div>
2    <script type="dojo/method" data-dojo-event="onVisit">
3        var that = this;
4        debugger;
5        require(['dojo/_base/json','dojo/dom','dojo/store/JsonRest','dojo/domReady!'],
6            function(json,dom,JsonRest){
7                var store = new JsonRest({
8                    target:"../server/api.php/data/Session/",
9                    idProperty: 'uid'
10                });
11                store.get(that.args.uid).then(function(obj){
12                    that.page_session_form.innerHTML = json.toJson(obj);
13                });
14            });
15    </script>
16    <div class="largeFrame" style="width: 400px;">
17        <div class="largeTitle">Session</div>
18        <div class="content">
19            <div data-rft-attach-point="page_session_form"></div>
20        </div>
21    </div>
22
23</div>
Note: See TracBrowser for help on using the repository browser.