Skip to content

Instantly share code, notes, and snippets.

@twobitfool
Created July 23, 2010 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

fixed the version in the path for the js file and added the class to the body tag

Thank you, phiggins42 -- https://gist.github.com/636bd317f8ed31b87887

@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