Ticket #8653 (closed bug: fixed)
jQuery.param outputs "null" and "undefined" in the query string
|Reported by:||d@…||Owned by:|
Description (last modified by rwaldron) (diff)
This ticket is a followup to the discussion in http://forum.jquery.com/topic/should-null-be-passed-in-query-strings-generated-by-jquery-param where I am using jQuery.ajax to send data to a web service.
the output is
which the server will interpret as the strings "null" and "undefined" rather than as empty values.
My expected output would be:
where null values are coerced to empty string, and undefined values have no value. (This is the behaviour in Prototype 1.7, which seems reasonable.)
- Priority changed from undecided to low
- Component changed from unfiled to ajax