Loading ...
Sorry, an error occurred while loading the content.
 

Re: Autocomplete from 2.5 to 2.6

Expand Messages
  • santini.alberto
    ... Sorry for the delayed response... My snippet describing how to access to the select object of the autocomplete: oAC.itemSelectEvent.subscribe(function
    Message 1 of 9 , Nov 5, 2008
      --- In ydn-javascript@yahoogroups.com, "matthew_be" <matthew016@...>
      wrote:
      >
      > This is my select item callback:
      >
      > var itemSelectHandler = function(sType, aArgs) {
      > if(sType != "itemSelect") return;
      > var oData = aArgs[2];
      > alert(oData.Type); // doesn't work
      > alert(oData[1]); // works
      >

      Sorry for the delayed response...

      My snippet describing how to access to the select object of the
      autocomplete:

      oAC.itemSelectEvent.subscribe(function (type, args) {
      var asset = {};

      asset.symbol = args[2][0];
      asset.name = args[2][1];
      asset.type = args[2][3];
      asset.exchDisp = args[2][4];
      ...

      Regards,
      Alberto
    Your message has been successfully submitted and would be delivered to recipients shortly.