1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <title>ComboBox - Live Search</title>
6 <link rel="stylesheet" type="text/css" href="../../cssX/roojs-all.css"/>
7 <link rel="stylesheet" type="text/css" href="../../cssX/xtheme-slate.css"/>
9 <script type="text/javascript" src="../../roojs-all.js"></script>
11 <script type="text/javascript" src="forum-search.js"></script>
14 <!-- Common Styles for the examples -->
15 <link rel="stylesheet" type="text/css" href="../examples.css" />
16 <style type="text/css">
21 <script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
23 <b>Combo with Templates and Ajax</b><br />
24 This is a more advanced example that shows how you can combine paging, Roo.Template and a remote data store
25 to create a "live search" feature.
27 <p>The js is not minified so it is readable. See
28 <button type="button" onclick="RooDocs.viewSource.show('/forum-search.js')">forum-search.js</button> and
29 <button type="button" onclick="RooDocs.viewSource.show('/forum-search.html')">forum-search.html</button>.</p>
31 <H1> This does not work yet, as we do not have a remote search on roojs.com</H1>
33 <!-- The box wrap markup embedded instead of using Element.boxWrap() -->
34 <div style="width:600px;">
36 <h3 style="margin-bottom:5px;">Search the RooJS Wiki</h3>
37 <input type="text" size="40" name="search" id="search" />
38 <div style="padding-top:4px;">
39 Live search requires a minimum of 4 characters.