r1 - 25 Oct 2007 - 02:32:23 - Main.DovKatzYou are here: TWiki >  JSLoader Web > DojoFilteringSelectDemo

Dojo Filtering Select Demo

Text in the options might be centered due to wiki css clashes. It probably doesn't happen in a plain use of the library. I'm sure it's due to my ignorance but it seems a bit annoying that I need the BODY class to be "tundra" for the skin to apply itself. So right now, on-load, I set the classname of the BODY element manually in javascript.

Select a Wiki Topic

<script src="/assets/jsloader.js"></script>
<script>
djConfig={ parseOnLoad:true};
JSLoader.getLoader("ria","dojo","1.0.0beta")
   .loadAll(["dojo","dijit","tundra"]);
</script>
    <script type="text/javascript">
        dojo.require("dojo.parser");
        dojo.require("dijit.form.FilteringSelect");
    </script>

<form action="%SCRIPTURL{view}%/%WEB%/%TOPIC%" method="get">
Select a Wiki Topic
<select  dojoType="dijit.form.FilteringSelect"
        name="topic"
        autocomplete="false"
        value="">
        %TOPICLIST{format="<option value='$name'>$name</option>"}%
   </select>
<input type="submit" value="Go">
</form>
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback