Ticket #8980 (closed feature: wontfix)
Feature: jQuery.deserialize()
| Reported by: | kflorence | Owned by: | kflorence |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7 |
| Component: | ajax | Version: | 1.6b1 |
| Keywords: | needsreview,1.7-discuss | Cc: | |
| Blocking: | Blocked by: |
Description (last modified by scott.gonzalez) (diff)
There exists methods to serialize data from a form into a URL-encoded string or an array of objects, but there are no methods for populating a form with that data. The following is a proposed implementation of jQuery.deserialize which handles these cases (in addition to JSON objects, as created by Ben Alman's jQuery.serializeObject method).
I would be happy to integrate this into the jQuery repository if it is desired.
Change History
comment:1 follow-up: ↓ 2 Changed 2 years ago by rwaldron
- Owner set to kflorence
- Priority changed from undecided to low
- Status changed from new to pending
- Component changed from unfiled to ajax
comment:2 in reply to: ↑ 1 Changed 2 years ago by kflorence
- Status changed from pending to new
Replying to rwaldron:
Have a look at: http://docs.jquery.com/JQuery_Core_Style_Guidelines
Thanks. I will make sure the plugin complies with the style guide.
EDIT: Source code updated to meet style guides.
comment:3 Changed 2 years ago by timmywil
- Keywords needsreview added
- Status changed from new to open
I think this is best implemented as a plugin.
comment:4 Changed 2 years ago by john
- Keywords needsreview,1.7-discuss added; needsreview removed
Nominating ticket for 1.7 discussion.
comment:5 Changed 2 years ago by rwaldron
I believe Ben has recently done some significant work on a deserialize() implementation
comment:8 Changed 2 years ago by dmethvin
- Description modified (diff)
-1, If we don't need it in core, it should be a plugin.
comment:10 Changed 2 years ago by ajpiano
- Description modified (diff)
-1, Great work, but it is certainly a lot of code to add for something we don't need in core and that doesn't come up every day for endusers...
comment:11 Changed 2 years ago by scott.gonzalez
- Description modified (diff)
-1, I think deserialize/deparam are useful enough for us to consider as core plugins though
comment:12 Changed 2 years ago by rwaldron
- Status changed from open to closed
- Resolution set to wontfix
- Milestone changed from 1.next to 1.7
Closing per 1.7 roadmap meeting resolution
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Have a look at: http://docs.jquery.com/JQuery_Core_Style_Guidelines