Ignore:
Timestamp:
20/04/09 09:36:43 (11 years ago)
Author:
cbyrom
Message:

Add functionality to allow vocab term searches to be done via an
ajax enabled, autocomplete text input. Add new controller and template
packages for this as well as javascript and style sheets. Also update
routing and add (commented out) example of usage in layout + add
documentation on how to use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/templates/layout.html

    r5158 r5201  
    33        xmlns:xi="http://www.w3.org/2001/XInclude" py:strip=""> 
    44<xi:include href="ndgPage.html" /> 
     5<!--  to see the vocab server autocomplete working, uncomment this line and the line further down 
     6<xi:include href="vocabsearch/vocabsearch.html" /> 
     7--> 
    58<?python from milk_server.controllers.atom_editor.editorconstants import *?> 
    69 
     
    1114      </title> 
    1215                ${Markup(h.javascript_include_tag(builtins=True))} 
    13                 <script type="text/javascript" src="$g.server/js/yui/build/yui/yui-min.js" ></script>  
     16                <script type="text/javascript" src="$g.server/js/yui/build/yui/yui-min.js" /> 
    1417            <script type="text/javascript" src="$g.server/js/toggleDiv.js"/> 
    1518        <script type="text/javascript" src="$g.server/js/ndgJavascript.js"/> 
     
    3841            <div py:replace="localTextSearch()"/> 
    3942          </div> 
     43<!--  to see the vocab server autocomplete working, uncomment this line and the line further up 
     44          <div py:replace="vocabSearchAutoComplete()" /> 
     45--> 
    4046      <div id="content"> 
    4147                <table py:if="g.atomEditorEnabled and c.title != ATOM_HOME_TITLE" class="homeHelpBar"> 
Note: See TracChangeset for help on using the changeset viewer.