Wednesday, 15 August 2012

javascript - How to call JS function when autocomplete is updated -


I am using primus p: autocomplete and modify the table of suggestions on clientside Required (Enter a line if there are X suggestions exactly).

To do this, I would like to call the JS function:

  function insertRow ($ {'(' .oO Complex Trail: Anth-Child (X) '). Endand ('<'>  My Tr & lt; / td> & lt; / tr & gt; '); }  

As the host of suggestions changes during typing, I need to call the function after every AJAX request, after autocomplete panel (again) Has been rendered. How can I get this? I did not find any incomplete event which refers to the AJAX request to receive the suggestions.

you p: ajax with query You can use the event, basically the query is the exact exact request for the actual query, in this way you can call incomplete Take that the query is fully implemented:

  & lt; P: ajax event = "query" oncomplete = "insertRow ()" / & gt;  

No comments:

Post a Comment