Bug Tracker

Opened 9 years ago

Closed 9 years ago

#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:
Blocked by: Blocking:

Description (last modified by scottgonzalez)

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 (12)

comment:1 Changed 9 years ago by Rick Waldron

Component: unfiledajax
Owner: set to kflorence
Priority: undecidedlow
Status: newpending

comment:2 in reply to:  1 Changed 9 years ago by kflorence

Status: pendingnew

Replying to rwaldron:

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

Thanks Richard. I will make sure the plugin complies with the style guide.

EDIT: Source code updated to meet style guides.

Version 1, edited 9 years ago by kflorence (previous) (next) (diff)

comment:3 Changed 9 years ago by timmywil

Keywords: needsreview added
Status: newopen

I think this is best implemented as a plugin.

comment:4 Changed 9 years ago by john

Keywords: 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:5 Changed 9 years ago by Rick Waldron

I believe Ben has recently done some significant work on a deserialize() implementation

comment:6 Changed 9 years ago by jaubourg

Description: modified (diff)

-1, plugin

comment:7 Changed 9 years ago by timmywil

-1, plugin

comment:8 Changed 9 years ago by dmethvin

Description: modified (diff)

-1, If we don't need it in core, it should be a plugin.

comment:9 Changed 9 years ago by john

Description: modified (diff)

-1, Sounds like a good plugin.

comment:10 Changed 9 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 9 years ago by scottgonzalez

Description: modified (diff)

-1, I think deserialize/deparam are useful enough for us to consider as core plugins though

comment:12 Changed 9 years ago by Rick Waldron

Milestone: 1.next1.7
Resolution: wontfix
Status: openclosed

Closing per 1.7 roadmap meeting resolution

Note: See TracTickets for help on using tickets.