roojs-all.js
[roojs1] / examples / form / forum-search.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
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"/>
8
9      <script type="text/javascript" src="../../roojs-all.js"></script>   
10   
11     <script type="text/javascript" src="forum-search.js"></script>
12     
13
14     <!-- Common Styles for the examples -->
15     <link rel="stylesheet" type="text/css" href="../examples.css" />
16     <style type="text/css">
17         p { width:650px; }
18     </style>
19 </head>
20 <body>
21 <script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
22 <p>
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.
26 </p>
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>
30
31 <H1> This does not work yet, as we do not have a remote search on roojs.com</H1>
32
33 <!-- The box wrap markup embedded instead of using Element.boxWrap() -->
34 <div style="width:600px;">
35      
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.
40         </div>
41     
42 </div>
43         
44 </body>
45 </html>