Bug Tracker

Opened 11 years ago

Closed 11 years ago

#12888 closed feature (plugin)

Would like option to have empty / unsuccessful elements return from serializeArray

Reported by: jeffrey.donner@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

It would be very useful to be able to have all properly formed input elements returned from a form via serializeArray, even the empty, W3C-unsuccessful ones. Python's CGI handling eg has this option. It's useful in the case where you have dynamically generated bunches of input elements; their being there but empty, is the most direct way to convey what the user did with them. Otherwise you have to add a non-empty hidden field for every input element to inform the caller that each is really there, or, some other roundabout method. It would be just an optional flag, as with Python's CGI.

Change History (1)

comment:1 Changed 11 years ago by dmethvin

Resolution: plugin
Status: newclosed

Not worth the bytes/complexity/documentation for core; there's a clear W3C-defined way to do things and we're doing them that way. Write a plugin for non-standard and unusual needs.

Note: See TracTickets for help on using tickets.