Skip to content

Instantly share code, notes, and snippets.

@twobitfool
Created July 23, 2010 18:44
Show Gist options
  • Save twobitfool/487862 to your computer and use it in GitHub Desktop.
Save twobitfool/487862 to your computer and use it in GitHub Desktop.
simple dijit example
<html>
<head>
<title>Dojo Test</title>
<style type="text/css">
/* use the tundra theme */
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css";
/* Note that if you don't specify a minor revision, e.g. 1.5.0 or 1.4.3, the CDN will deliver the latest version */
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js.uncompressed.js" djConfig="parseOnLoad:true"></script>
<script type="text/javascript">
dojo.require('dijit.form.FilteringSelect');
</script>
</head>
<body class="claro">
<select name="players" id="players" dojoType="dijit.form.FilteringSelect" autoComplete="true" pageSize="10">
<option value="">Select an Arsenal Player</option>
<option value="Arshavin" selected="selected">Andrey Arshavin</option>
<option value="Vermaelen">Thomas Vermaelen</option>
<!-- more OPTION elements here -->
</select>
</body>
</html>
@twobitfool
Copy link
Author

changed theme to claro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment