Bug Tracker

Ticket #931 (closed feature: wontfix)

Opened 2 years ago

Last modified 5 months ago

Ability to change Data Source in Autocomplete

Reported by: anonymous Assigned to: stefan
Type: feature Priority: minor
Milestone: Component: interface
Version: Keywords:
Cc: Needs: Review

Description (last modified by scott.gonzalez) (diff)

It would be incredibly wonderful if we could add an option (or customize the existing one) to the Interface Autocomplete to accept a different datatype and datasource for the source option.

For instance, I may already have an object in Javascript, or I'd prefer to control the ajax request on my own, so it would be great if the source param could check to see if it's a string or a function, and if it's a function, use the return value of the function as the source.

Sometimes we're not able to affect the serverside return value, and it would be nice if the data retrieval aspect was abstracted a bit so we could feed it some custom data.

Thanks,

Attachments

Change History

Changed 2 years ago by Lincoln Cooper

I would find this really useful too - I need to send extra parameters to the server depending upon the values of other fields on the page.

I am currently trying out this autocompleter:

http://www.pengoworks.com/workshop/jquery/autocomplete.htm

which does have this functionality.

Changed 5 months ago by scott.gonzalez

  • need set to Review
  • status changed from new to closed
  • resolution set to wontfix
  • description changed from It would be incredibly wonderful if we could add an option (or customize the existing one) to the Interface Autocomplete to accept a different datatype and datasource for the source option. For instance, I may already have an object in Javascript, or I'd prefer to control the ajax request on my own, so it would be great if the source param could check to see if it's a string or a function, and if it's a function, use the return value of the function as the source. Sometimes we're not able to affect the serverside return value, and it would be nice if the data retrieval aspect was abstracted a bit so we could feed it some custom data. Thanks, to It would be incredibly wonderful if we could add an option (or customize the existing one) to the Interface Autocomplete to accept a different datatype and datasource for the source option. For instance, I may already have an object in Javascript, or I'd prefer to control the ajax request on my own, so it would be great if the source param could check to see if it's a string or a function, and if it's a function, use the return value of the function as the source. Sometimes we're not able to affect the serverside return value, and it would be nice if the data retrieval aspect was abstracted a bit so we could feed it some custom data. Thanks,

Interface is no longer supported; consider switching to jQuery UI.

Note: See TracTickets for help on using tickets.