From e44a7e37b6c7b5961adaffc62b9042b8d442938e Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 13 Nov 2008 09:49:11 +0000 Subject: New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f --- .../rpc/demos/demo_JsonRestStore_CouchDB.html | 125 +++++++++++++++++++++ .../rpc/demos/demo_JsonRestStore_Persevere.html | 65 +++++++++++ includes/js/dojox/rpc/demos/documentation.html | 33 ++++++ .../dojox/rpc/demos/templates/documentation.html | 8 ++ includes/js/dojox/rpc/demos/templates/yahoo.html | 31 +++++ includes/js/dojox/rpc/demos/yahoo.html | 39 +++++++ 6 files changed, 301 insertions(+) create mode 100644 includes/js/dojox/rpc/demos/demo_JsonRestStore_CouchDB.html create mode 100644 includes/js/dojox/rpc/demos/demo_JsonRestStore_Persevere.html create mode 100644 includes/js/dojox/rpc/demos/documentation.html create mode 100644 includes/js/dojox/rpc/demos/templates/documentation.html create mode 100644 includes/js/dojox/rpc/demos/templates/yahoo.html create mode 100644 includes/js/dojox/rpc/demos/yahoo.html (limited to 'includes/js/dojox/rpc/demos') diff --git a/includes/js/dojox/rpc/demos/demo_JsonRestStore_CouchDB.html b/includes/js/dojox/rpc/demos/demo_JsonRestStore_CouchDB.html new file mode 100644 index 0000000..f5fc26c --- /dev/null +++ b/includes/js/dojox/rpc/demos/demo_JsonRestStore_CouchDB.html @@ -0,0 +1,125 @@ + + + + +
+ ++ + This simple demo shows how JsonRestStore can be used with Persevere. + +
+ ++ +
+ + + ++ + + + + ++ + + +
+ ++ + + + + ++ + + + + +
+ + + + + diff --git a/includes/js/dojox/rpc/demos/demo_JsonRestStore_Persevere.html b/includes/js/dojox/rpc/demos/demo_JsonRestStore_Persevere.html new file mode 100644 index 0000000..40c6bac --- /dev/null +++ b/includes/js/dojox/rpc/demos/demo_JsonRestStore_Persevere.html @@ -0,0 +1,65 @@ + + + +Demo of JsonRestStore + + + + + + + ++ DEMO: JsonRestStore Search +
+
++ Description: +
++ This simple demo shows how JsonRestStore can be used with Persevere. +
++
+ ++ + ++ +
++ + ++ + +
+ + diff --git a/includes/js/dojox/rpc/demos/documentation.html b/includes/js/dojox/rpc/demos/documentation.html new file mode 100644 index 0000000..4c28103 --- /dev/null +++ b/includes/js/dojox/rpc/demos/documentation.html @@ -0,0 +1,33 @@ + + + + + + + + + \ No newline at end of file diff --git a/includes/js/dojox/rpc/demos/templates/documentation.html b/includes/js/dojox/rpc/demos/templates/documentation.html new file mode 100644 index 0000000..d14cf16 --- /dev/null +++ b/includes/js/dojox/rpc/demos/templates/documentation.html @@ -0,0 +1,8 @@ ++ +\ No newline at end of file diff --git a/includes/js/dojox/rpc/demos/templates/yahoo.html b/includes/js/dojox/rpc/demos/templates/yahoo.html new file mode 100644 index 0000000..04339d2 --- /dev/null +++ b/includes/js/dojox/rpc/demos/templates/yahoo.html @@ -0,0 +1,31 @@ ++ {% for result in results %} +
+- {% if result.type %}{{ result.type }} {% endif %}{% ifequal result.type "Function" %}{% if not result.resources %}function {% endif %}{% endifequal %}{{ result.name }}{% ifequal result.type "Function" %}{% if not result.resources %}({% for parameter in result.parameters %}{% if not forloop.first %}, {% endif %}{% if parameter.types %}{% for type in parameter.types %}{% if not forloop.first %}|{% endif %}{{ type.title }}{% endfor %}{% if parameter.optional %}?{% endif %}{% if parameter.repeating %}...{% endif %} {% endif %}{{ parameter.name }}{% endfor %}{% endif %}{% endifequal %}{% ifequal result.type "Function" %}{% if not result.resources %}){% endif %}{% endifequal %}
+ {% endfor %} ++ +diff --git a/includes/js/dojox/rpc/demos/yahoo.html b/includes/js/dojox/rpc/demos/yahoo.html new file mode 100644 index 0000000..39cee00 --- /dev/null +++ b/includes/js/dojox/rpc/demos/yahoo.html @@ -0,0 +1,39 @@ + + ++ {% for result in results.Result %} +
+- {{ result.Title }}
+ {% endfor %} +
{{ result.Summary }}+ {% if results.firstResultPosition %} +
++ + {% endif %}{% if results.totalResultsAvailable %} +First Result +{{ results.firstResultPosition }} ++ + {% endif %}{% if results.totalResultsReturned %} +Total Results Available +{{ results.totalResultsAvailable }} ++ + {% endif %}{% if results.type %} +Results Returned +{{ results.totalResultsReturned }} ++ + {% endif %} +Type +{{ results.type }} ++ Yahoo Search Demo + + + + + +Yahoo Web Search
+ + + -- cgit v1.3-2-g0d8e