From Mustard Mosquito, 4 Months ago, written in Plain Text.
Embed
  1. function liFormat (row, i, num) {
  2.   var result = '<span class="ac_picture">'+row[2]+'</span><span class="name">'+row[0]+'</span><span class="ac_price">'+ row[1] +'</span><br /><span class="clear">'+row[3]+'</span>';
  3.   return result;
  4. }
  5. function selectItem(li) {
  6.  
  7.         if( !!li.extra ) var sValue = li.extra[1];
  8.         else var sValue = li.selectValue;
  9.         window.location = li.extra[3];
  10.  
  11. }
  12.  
  13.  
  14. $( document ).ready(function(){
  15.   $("#searchstring").autocomplete("/published/SC/html/scripts/prompt/new_search.php", {
  16.     delay:10,
  17.     minChars:2,
  18.     matchSubset:1,
  19.     autoFill:false,
  20.     matchContains:1,
  21.     cacheLength:1,
  22.     selectFirst:true,
  23.     formatItem:liFormat,
  24.     maxItemsToShow:15,
  25.     onItemSelect:selectItem,
  26. extraParams :{lang : "ru", curr: 3  }
  27.   });
  28.  
  29.  
  30. });
  31.  

Replies to Untitled rss

Title Name Language When
Re: Untitled Violet Octupus text 4 Months ago.