Re: Autocomplete - access additional response data
- I'm having exactly the same problem.
Can anyone help?
> I'd like to show the number of items returned from my autocomplete
> I'm using JSON data from a server.
> dataSource = new YAHOO.widget.DS_XHR(root,
> ["ResultSet.Stores","Number","Name","Address", "PartyId"]);
> My JSON object returns the number of items as meta data above the
> for the autocomplete ('stores').autocomplete...]
> "Stores": [...contains the results to display in the
> I subscribed to dataReturnEvent(oSelf , sQuery , aResults).
> But I can't figure out how to access any values (the
> or totalResultsReturned) from the raw data.
> Thanks in advance...martin
- Patrick and Martin,Jenny Han Donnelly, the AutoComplete author, notes that AutoComplete provides access to DataSource meta fields via the doBeforeLoadData() function. Meta fields are the best way to handle this. Take a look at this example:Let me know if you have any further questions.-EricOn Nov 30, 2008, at 2:42 AM, pcraston wrote: