GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / sandbox / ajax / web-app / google.html
blob21bb23b370eca445213c05e0cef7809ad9105e40
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
4 <meta name="layout" content="default"></meta>
5 <title>Auto-Complete Google Example</title>
6 <script>
7 <!--
8 function bodyOnload() {
9 ajaxEngine.registerAjaxElement("googleUrlResults");
10 ajaxEngine.registerRequest("search", "/ajax/google/search");
11 $("btnG").onclick = function() {
12 ajaxEngine.sendRequest("search", "q=" + $("googleTextField").value);
15 // -->
16 </script>
17 </head>
18 <body onload="bodyOnload();">
20 <table border=0 cellspacing=0 cellpadding=4>
21 <table cellspacing=0 cellpadding=0>
22 <tr><td width=25%>&nbsp;</td>
23 <td align=center>
24 <input id="googleTextField" maxLength=256 size=55 name=q value="" autocomplete="off">
25 <input type=button id="btnG" value="Go" name=btnG>
26 </td>
27 </tr>
28 </table>
30 <div id="googleUrlResults">
32 </div>
33 </body></html>