Ok I got this figured out.  maybe this can help anyone else looking
for a similiar solution.  bnased of the demo I can manipulate output
with the findValueCallback function.


$(document).ready(function() {


  function findValueCallback(event, data, formatted) {
         $("<li>").html( !data ? "No match!" : "Selected: " +
formatted).appendTo("#results");
        }

  $("#title_name").autocomplete("intra_autosearch.html", {
    width: 350,
        max: 50,
        cacheLength: 0,
        scroll: true,
        minChars: 4,
        minChars: 4,
    autoFill: false,
                mustMatch: false,
                matchContains: false,
        selectFirst: false,
        extraParams: { d: function(){return $
("[EMAIL PROTECTED]:checked").val();}}
  });

  $(":text").result(findValueCallback).next().click(function() {
                $(this).prev().search();
        });

        $("#title_name").result(function(event, data, formatted) {
        if (data)
        alert(data);
          $("#title_name").val(data[0]);
          $("#item_number").val(data[1]);
          $("#title_street").val(data[2]);
          $("#title_prebook").val(data[3]);
  });
});

Reply via email to