Ignore:
Timestamp:
11/11/09 12:39:07 (11 years ago)
Author:
astephen
Message:

added type ahead and filepath into UI options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/renderer/form_renderer.py

    r5960 r5994  
    6161 
    6262        return html 
     63 
     64    def renderTypeAheadDirList(self, name, base_dir): 
     65        """ 
     66        Renders type-ahead widget for directory listing. 
     67        """ 
     68        html = """      <script type="text/javascript" src="/js/ext/jquery-1.3.2/jquery-1.3.2.js"></script> 
     69        <script type="text/javascript" src="/js/ui/type_ahead_dirs.js"></script> 
     70        <script type="text/javascript"> 
     71                var current_list = false; 
     72                var abs_pos_%s = null; 
     73 
     74                $(document).ready(function(){ 
     75                        initTypeAhead("%s", "type_ahead_for_%s", "%s"); 
     76                        abs_pos_%s = type_ahead_div.offset();    
     77                        positionRespDiv(abs_pos_%s); 
     78                }); 
     79        </script> 
     80 
     81        <p>Press down button to fill with text...</p> 
     82        <div style="z-index: 1;"> 
     83                <input type="text" id="%s" name="%s" value="" style="width: 505px; height: 25px;" onBlur="hideSuggestions();" onFocus="showSuggestions();" /> 
     84        </div> 
     85        <!--<span id="resp_container"> 
     86<div id="type_ahead_for_%s" style="width: 500px; background-color: yellow; border-style: solid; border-width: 1px; position: relative;"></div> 
     87        </span>--> 
     88        <div id="type_ahead_for_%s" style="width: 500px; background-color: yellow; border-style: solid; border-width: 1px; position: statis;"></div> 
     89""" % (name, name, name, base_dir, name, name, name, name, name, name) 
     90        return html   
Note: See TracChangeset for help on using the changeset viewer.