diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-13 09:49:11 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-13 09:49:11 +0000 |
commit | e44a7e37b6c7b5961adaffc62b9042b8d442938e (patch) | |
tree | 95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojox/image/tests/test_Gallery.html | |
parent | a62b9742ee5e28bcec6872d88f50f25b820914f6 (diff) | |
download | semanticscuttle-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_Gallery.html')
-rw-r--r-- | includes/js/dojox/image/tests/test_Gallery.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/includes/js/dojox/image/tests/test_Gallery.html b/includes/js/dojox/image/tests/test_Gallery.html new file mode 100644 index 0000000..320c481 --- /dev/null +++ b/includes/js/dojox/image/tests/test_Gallery.html @@ -0,0 +1,67 @@ +<!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 the Image Gallery</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:true, isDebug: true, defaultTestTheme:'soria'"></script> + <script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script> + <script type="text/javascript" src="../ThumbnailPicker.js"></script> + <script type="text/javascript" src="../SlideShow.js"></script> + <script type="text/javascript" src="../Gallery.js"></script> + <script type="text/javascript" src="../../../dojo/data/util/simpleFetch.js"></script> + <script type="text/javascript" src="../../data/FlickrStore.js"></script> + <script type="text/javascript" src="../../data/FlickrRestStore.js"></script> + <script type="text/javascript" src="../../../dojo/data/ItemFileReadStore.js"></script> + + <script type="text/javascript"> + // dojo.require("dojox.image.Gallery"); + dojo.require("dojox.data.FlickrRestStore"); + dojo.require("dojo.parser"); // find widgets + + dojo.addOnLoad(function(){ + var flickrRestStore = new dojox.data.FlickrRestStore(); + var req = { + query: { + userid: "44153025@N00", + apikey: "8c6803164dbc395fb7131c9d54843627", + sort: [ + { + attribute: "interestingness", + descending: true + } + ], + // tags: ["superhorse", "redbones", "beachvolleyball"], + tag_mode: "any" + }, + count: 20 + }; + dijit.byId('gallery1').setDataStore(flickrRestStore, req); +/* + dijit.byId('gallery2').setDataStore(imageItemStore,{ count:20 },{ + imageThumbAttr: "thumb", + imageLargeAttr: "large" + }); +*/ + }); + </script> +</head> +<body> + <h1 class="testTitle">dojox.image.Gallery</h1> + + <h2>From FlickrRestStore:</h2> + <div id="gallery1" dojoType="dojox.image.Gallery" imageWidth="700" imageHeight="500"></div> + +<!-- + <h2>From ItemFileReadStore:</h2> + <div id="gallery2" dojoType="dojox.image.Gallery"></div> +--> + +</body> +</html> |