#601 bug

Ajax.request and Object.toQueryString

Reported by bubbatls | March 18th, 2009 @ 02:50 PM

Ajax.Request use Object.toQueryString to generate data to post.

But Object.toQueryString do this {p:'p',myparam:null} => p=p&myparam and {p:'p',myparam:''} => p=p&myparam=

But I'm using java servlet to handle the call, and there is no difference between myparam and myparam= When I get the param 'myparam', it returns me and empty string. Which is not what I wanted to Post.

In my mind Object.toQueryString should not do that, at least when using Ajax.Request

A quick fix would be to not return key if undefined in function toQueryPair

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket