Tried, but had problems with longer ones....

j_query_calls = """<script 
src="../static/_2.12.3/js/web2py.js"></script><script 
                            
src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js";></script>
                            <script 
src="../static/_2.12.3/js/web2py.js"></script>"""
        row_adder = """
                <script>
                $( document ).ready(function() {
                $('#Debts_creditor__row').after('<tr id="suggestion_id"><td 
colspan=2><font color=#006100>Suggested Creditors</font></td></tr><tr 
id="suggestion_id"><td colspan=2><font color=#006100><div 
id="suggestions"></div></font></td></tr>');
                $( "#Debts_creditor" ).keyup(function() {
                     ajax('%s', ['creditor'], 'suggestions');
                    });});
                </script>
                """ %URL('default', 'cred_selector')

        return '<head>%s%s</head>%s' %(j_query_calls,row_adder, ajax_form)

On Wednesday, October 14, 2015 at 8:24:58 PM UTC-4, Dave S wrote:
>
>
>
> On Wednesday, October 14, 2015 at 2:30:03 PM UTC-7, Mark Billion wrote:
>>
>> NM.  I injected the jquery into the header.  
>>
>
> Element selection?
>
> /dps
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to