Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9882 (new defect)

Opened 7 months ago

Last modified 3 months ago

[PATCH] Allowing Ajax.AutoCompleter Parameters to Be A Hash

Reported by: xutopia Assigned to: madrobby
Priority: low Milestone: 2.x
Component: script.aculo.us Version: edge
Severity: minor Keywords:
Cc: cpuidle@gmx.de

Description

The ajax.autocompleter documentation (http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter) states that the parameters parameter can either be a hash or a string:

"If you need to send any additional parameters through your search form, add them here, in the usual {field: 'value',another: 'value'} or 'field=value&another=value' manner."

The reality is that it only accepted a string. The included patch allows for either to be sent.

Attachments

patch_for_autocompleter_parameters.diff (3.2 kB) - added by xutopia on 10/15/07 23:12:27.
Allow Hash or String As 'parameters' parameter in Ajax.AutoCompleter
hash.diff (0.6 kB) - added by kangax on 10/16/07 12:09:31.
Use Object.isString and Object.toQueryString

Change History

10/15/07 23:12:27 changed by xutopia

  • attachment patch_for_autocompleter_parameters.diff added.

Allow Hash or String As 'parameters' parameter in Ajax.AutoCompleter

10/16/07 12:09:31 changed by kangax

  • attachment hash.diff added.

Use Object.isString and Object.toQueryString

10/16/07 12:10:11 changed by kangax

  • priority changed from normal to low.
  • severity changed from normal to minor.
  • summary changed from Allowing Ajax.AutoCompleter Parameters to Be A Hash to [PATCH] Allowing Ajax.AutoCompleter Parameters to Be A Hash.

01/22/08 19:28:16 changed by andig

  • cc set to cpuidle@gmx.de.

+1 for same topic as ticket 10612

01/22/08 19:32:08 changed by macournoyer

+1

01/22/08 19:32:59 changed by jamesgolick

  • keywords set to verified.

+1 - looks good to me.

02/15/08 23:17:04 changed by nzkoz

  • keywords deleted.

removing verified keyword as that's for rails patches, not scriptaculous ones