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

Ticket #5987 (closed enhancement: duplicate)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Ajax.Request: allow hash for parameters

Reported by: mschuerig Assigned to: sam
Priority: normal Milestone:
Component: Prototype Version: edge
Severity: normal Keywords:
Cc:

Description

A very simple, though untested change, that makes Ajax.Request take parameters in the form of a hash (well, object). All the pieces are already there.

   request: function(url) {
     var parameters = this.options.parameters || '';
+    if (typeof parameters == 'object') {
+      parameters = $H(parameters).toQueryString();
+    }

Change History

09/03/06 18:53:27 changed by madrobby

  • status changed from new to closed.
  • resolution set to untested.

09/03/06 19:27:25 changed by mschuerig

  • status changed from closed to reopened.
  • resolution deleted.

Any suggestion what form tests should take?

10/09/06 09:58:54 changed by mislav

This ticket is superseded by #6366 (w/ tests)

11/04/06 20:45:46 changed by mislav

  • status changed from reopened to closed.
  • resolution set to duplicate.

in favor of #6366 (but thanks for reporting!)