source: Dev/trunk/src/client/dojox/rpc/demos/documentation.html @ 493

Last change on this file since 493 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 934 bytes
Line 
1<html>
2        <head>
3                <script src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad: true"></script>
4                <script>
5                        dojo.require("dojo.io.script")
6                        dojo.require("dojox.rpc.Service");
7                        dojo.require("dijit._Widget");
8                        dojo.require("dojox.dtl._Templated");
9                        dojo.require("dojo.parser");
10
11                        dojo.declare("API", [dijit._Widget, dojox.dtl._Templated], {
12                                constructor: function(params, node){
13                                        this.jsonp = new dojox.rpc.Service(dojo.moduleUrl("dojox.rpc", "SMDLibrary/dojo-api.smd"));
14                                },
15                                onSearch: function(e){
16                                        if(e.keyCode == dojo.keys.ENTER){
17                                                this.jsonp.get({
18                                                        name: e.target.value
19                                                }).addCallback(this, function(results){
20                                                        console.debug(results);
21                                                        this.results = results;
22                                                        this.render();
23                                                });
24                                        }
25                                },
26                                templateString: dojo.cache("dojox.rpc.demos.templates", "documentation.html")
27                        });
28                </script>
29        </head>
30        <body>
31                <div dojoType="API"></div>
32        </body>
33</html>
Note: See TracBrowser for help on using the repository browser.