Advertisement
Guest User

Untitled

a guest
Jul 24th, 2013
2,919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     $(document).ready(function() {
  3.         $('#input').autocomplete({
  4.             source: function(query, response) {
  5.                 $.ajax({
  6.                     url: "/autocomplete.cfc?method=queryNames&returnformat=json",
  7.                     dataType: "json",
  8.                     data: {
  9.                         searchPhrase: query.term
  10.                     },
  11.                     success: function(result) {
  12.                         response(result);
  13.                     }
  14.                 });
  15.             }
  16.         });
  17.     });
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement