/[webpac2]/Webpacus/root/autocomplete.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/autocomplete.tt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by dpavlin, Tue Nov 22 12:57:04 2005 UTC revision 93 by dpavlin, Tue Nov 22 12:57:15 2005 UTC
# Line 1  Line 1 
1  [% INCLUDE header.tt %]  [% INCLUDE header.tt %]
2    
3  [% c.prototype.auto_complete_stylesheet %]  [% c.prototype.auto_complete_stylesheet %]
   
 <form id="search_form">  
   
4  [% url = base _ 'autocomplete/suggest/' %]  [% url = base _ 'autocomplete/suggest/' %]
5    
6    [% c.prototype.form_remote_tag(
7            url => base _ 'results',
8            update => 'results',
9            loading => " Effect.Appear('searching'); ",
10            loaded => " Effect.Fade('searching'); ",
11    ) %]
12    
13  <table>  <table>
14  <tr>  <tr>
15  <td>  <td>
16  Naslov:  Naslov:
17  </td><td>  </td><td>
18  <input autocomplete="off" id="naslov_input" name="complete_me" type="text" value="" size="60"/>  <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
19  <span id="naslov_input_loading" style="display: none;">...</span>  <span id="naslov_input_loading" style="display: none;">...</span>
20  </div>  </div>
21  <div class="auto_complete" id="naslov_input_auto_complete"></div>  <div class="auto_complete" id="naslov_input_auto_complete"></div>
# Line 24  Naslov: Line 28  Naslov:
28  <td>  <td>
29  Autor:  Autor:
30  </td><td>  </td><td>
31  <input autocomplete="off" id="autor_input" name="complete_me" type="text" value="" size="60"/>  <input autocomplete="off" id="autor_input" name="PersonalName" type="text" value="" size="60"/>
32  <span id="autor_input_loading" style="display: none;">...</span>  <span id="autor_input_loading" style="display: none;">...</span>
33  </div>  </div>
34  <div class="auto_complete" id="autor_input_auto_complete"></div>  <div class="auto_complete" id="autor_input_auto_complete"></div>
# Line 36  Autor: Line 40  Autor:
40  </tr>  </tr>
41  </table>  </table>
42    
43    <input type="submit" name="_submit" value="Search" />
44    
45  </form>  </form>
46    
 [% c.prototype.submit_to_remote( 'submit', 'Search', {  
         url => base _ 'results',  
         update => 'results',  
         loading => " Effect.Appear('searching'); ",  
         loaded => " Effect.Fade('searching'); ",  
 } ) %]  
47  <span id="searching" style="display: none;">  <span id="searching" style="display: none;">
48  Search in progress...  Search in progress...
49  </span>  </span>

Legend:
Removed from v.92  
changed lines
  Added in v.93

  ViewVC Help
Powered by ViewVC 1.1.26