>
> $(function() { 
>   $("#no_table_locality_args").autocomplete({ 
>     source: 
> "{{=URL('hubaddressbook','locality_args_autocomplete',args='javascript: 
> $(select#no_table_word).val();')}}",
>

You have to put your javascript code in the javascript portion of the 
above, not the Python portion (Python doesn't know what to do with the 
javascript -- the URL function ends up simply URL encoding it and adding it 
to the URL). Instead, probably something like:

$(function() { 
  $("#no_table_locality_args").autocomplete({ 
    source: "{{=URL('hubaddressbook', 'locality_args_autocomplete')}}" + 
"/" + $(select#no_table_word).val(),

Anthony

Reply via email to