> The String#toQueryParams method already accepts a separator argument

I know, but there are other places where & is assumed.


> I guess it may be available for Hash.toQueryString, too. And, since we
> recommend keeping params as hashes in your code (not strings) before you
> pass them to Ajax.Requests, I guess we need an option for Ajax to serialize
> those hashes with an alternate separator, too.

Because the use of & and Hash.toQueryString is scattered throughout
prototype, you may want to provide some kind of global setting for the
query parameter separator. This would allow you to get the desired
behavior without having to change the function interface for every
function that hard codes '&' or that might eventually call
Hash.toQueryString or String#toQueryParams.

- Aparajita


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to