aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojox/rpc/demos/yahoo.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/rpc/demos/yahoo.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/rpc/demos/yahoo.html')
-rw-r--r--includes/js/dojox/rpc/demos/yahoo.html39
1 files changed, 0 insertions, 39 deletions
diff --git a/includes/js/dojox/rpc/demos/yahoo.html b/includes/js/dojox/rpc/demos/yahoo.html
deleted file mode 100644
index 39cee00..0000000
--- a/includes/js/dojox/rpc/demos/yahoo.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<html>
- <head>
- <title>
- Yahoo Search Demo
- </title>
- <script src="../../../dojo/dojo.js" type="text/javascript"
- djConfig="parseOnLoad: true, isDebug: true"></script>
- <script type="text/javascript">
- dojo.require("dojo.io.script")
- dojo.require("dojox.rpc.Service");
- dojo.require("dijit._Widget");
- dojo.require("dojox.dtl._Templated");
- dojo.require("dojo.parser");
-
- dojo.declare("YahooWebSearchApiWidget", [dijit._Widget, dojox.dtl._Templated], {
- constructor: function(params, node){
- var mu = dojo.moduleUrl("dojox.rpc.SMDLibrary", "yahoo.smd");
- this.yahoo = new dojox.rpc.Service(mu);
- },
- onSearch: function(e){
- if(e.keyCode == dojo.keys.ENTER){
- this.yahoo.webSearch({
- query: e.target.value
- }).addCallback(this, function(results){
- console.debug(results.ResultSet);
- this.results = results.ResultSet;
- this.render();
- });
- }
- },
- templatePath: dojo.moduleUrl("dojox.rpc.demos.templates", "yahoo.html")
- });
- </script>
- </head>
- <body>
- <h1>Yahoo Web Search</h1>
- <div dojoType="YahooWebSearchApiWidget"></div>
- </body>
-</html>