summaryrefslogtreecommitdiff
path: root/includes/js/dojox/image/tests/test_SlideShow.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
commite44a7e37b6c7b5961adaffc62b9042b8d442938e (patch)
tree95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojox/image/tests/test_SlideShow.html
parenta62b9742ee5e28bcec6872d88f50f25b820914f6 (diff)
downloadsemanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz
semanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.bz2
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
Diffstat (limited to 'includes/js/dojox/image/tests/test_SlideShow.html')
-rw-r--r--includes/js/dojox/image/tests/test_SlideShow.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/includes/js/dojox/image/tests/test_SlideShow.html b/includes/js/dojox/image/tests/test_SlideShow.html
new file mode 100644
index 0000000..9200c4b
--- /dev/null
+++ b/includes/js/dojox/image/tests/test_SlideShow.html
@@ -0,0 +1,68 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <title>Testing dojox.image.SlideShow</title>
+
+ <style type="text/css">
+ @import "../../../dijit/tests/css/dijitTests.css";
+ @import "../resources/image.css";
+ </style>
+
+ <script type="text/javascript" src="../../../dojo/dojo.js" djconfig="parseOnLoad:false, isDebug: true, defaultTestTheme: 'soria'"></script>
+ <script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>
+ <script type="text/javascript" src="../SlideShow.js"></script>
+ <script type="text/javascript" src="../../../dojo/data/ItemFileReadStore.js"></script>
+ <script type="text/javascript" src="../../data/FlickrRestStore.js"></script>
+
+ <script type="text/javascript">
+ // dojo.require("dojox.image.SlideShow");
+ // dojo.require("dojox.data.FlickrRestStore");
+ // dojo.require("dojo.data.ItemFileReadStore");
+ dojo.require("dojo.parser"); // find widgets
+
+ dojo.addOnLoad(function(){
+ //Initialize the first SlideShow with an ItemFileReadStore
+ dojo.parser.parse(dojo.body());
+ dijit.byId('slideshow1').setDataStore(imageItemStore,
+ { query: {}, count:20 },
+ {
+ imageThumbAttr: "thumb",
+ imageLargeAttr: "large"
+ }
+ );
+
+ //INitialize the second store with a FlickrRestStore
+ var flickrRestStore = new dojox.data.FlickrRestStore();
+ var req = {
+ query: {
+ userid: "44153025@N00",
+ apikey: "8c6803164dbc395fb7131c9d54843627"
+ },
+ count: 20
+ };
+ dijit.byId('slideshow2').setDataStore(flickrRestStore, req);
+ });
+
+ </script>
+</head>
+<body>
+ <h1 class="testTitle">dojox.image.SlideShow</h1>
+
+ <h2>from dojo.data.ItemFileReadStore</h2>
+ <div jsId="imageItemStore" dojoType="dojo.data.ItemFileReadStore" url="images.json"></div>
+
+ This SlideShow should display five photos, and loop. It should also
+ open a URL when the image is clicked. The widget should also resize to
+ fit the image.
+ <div id="slideshow1" dojoType="dojox.image.SlideShow"></div>
+
+ <h2>from dojox.data.FlickrRestStore</h2>
+ This SlideShow should display five photos, and not loop. It should also not
+ open a URL when the image is clicked. AutoLoading of images is also disabled.
+ The time between images in a SlideShow is 1 second. The widget should not resize to fit the image
+ <div id="slideshow2" dojoType="dojox.image.SlideShow" noLink="true" loop="false" autoLoad="false"
+ slideshowInterval="1" fixedHeight="true"></div>
+
+</body>
+</html>