Yeah, it looks like the query string isn't propagated to the links within 
the table. However, you can propagate URL args by specifying the "args" 
argument to .grid(). Maybe something like this:

{{=LOAD('default', 'ajaxTable2.load', args=[60], ajax=True, target='grid')}}
    
<script>
  $('#input4').keyup(function(){
    input_value = $("#input4").val();
    web2py_component('{{=URL("default", "ajaxTable3.load")}}' + '/' +input_value
, 'grid');
  });
</script>


def ajaxTable3():
    query = (db.applicant.id > 0) & (db.applicant.id < request.args(0))
    grid = SQLFORM.grid(query, args=[request.args(0)], searchable=False, csv
=False)
    return grid

Also, do not put the {{=LOAD(...)}} inside a div with id="grid". The LOAD() 
helper automatically creates its own div with the id set to the "target" 
argument (if "target" isn't specified, it generates a random id 
automatically).

Anthony

-- 



Reply via email to