Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: JavaScript  |  size: 0.40 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.                 $("#by-ingredient").bind("pageshow", function(e) {
  2.  
  3.                         $("#searchField").autocomplete({
  4.                                 target: $('#suggestions'),
  5.                                 source: function(request, response) {
  6.                                     $.ajax({
  7.                                         url: "http://www.recipepuppy.com/api/",
  8.                                         dataType:'jsonp',
  9.                                         success: function() {
  10.                                                 console.log(response)
  11.                                         }
  12.                                     })
  13.                                 },
  14.  
  15.                                 //link: 'target.html?q=',
  16.                         });
  17.                
  18.                 });