Skip to main content

Bug Tracker

Side navigation

#8980 closed feature (wontfix)

Opened April 26, 2011 06:30PM UTC

Closed June 07, 2011 06:53PM UTC

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

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.

Attachments (0)
Change History (12)

Changed April 26, 2011 06:45PM UTC by rwaldron comment:1

component: unfiledajax
owner: → kflorence
priority: undecidedlow
status: newpending

Changed April 26, 2011 06:48PM UTC by kflorence comment:2

_comment0: Replying to [comment:1 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.1303846108218474
_comment1: Replying to [comment:1 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.1304008889012977
status: pendingnew

Replying to [comment:1 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.

Changed May 02, 2011 02:31AM UTC by timmywil comment:3

keywords: → needsreview
status: newopen

I think this is best implemented as a plugin.

Changed May 22, 2011 07:27PM UTC by john comment:4

keywords: needsreviewneedsreview,1.7-discuss

Nominating ticket for 1.7 discussion.

Changed May 22, 2011 09:08PM UTC by rwaldron comment:5

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

Changed May 23, 2011 12:43AM UTC by jaubourg comment:6

description: 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). \ \ * [https://github.com/kflorence/jquery-deserialize Source Code] \ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples] \ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests] \ \ I would be happy to integrate this into the jQuery repository if it is desired.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).\ \ * [https://github.com/kflorence/jquery-deserialize Source Code]\ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples]\ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests]\ \ I would be happy to integrate this into the jQuery repository if it is desired.

-1, plugin

Changed May 23, 2011 04:36AM UTC by timmywil comment:7

-1, plugin

Changed May 24, 2011 09:43PM UTC by dmethvin comment:8

description: 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).\ \ * [https://github.com/kflorence/jquery-deserialize Source Code]\ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples]\ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests]\ \ I would be happy to integrate this into the jQuery repository if it is desired.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). \ \ * [https://github.com/kflorence/jquery-deserialize Source Code] \ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples] \ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests] \ \ I would be happy to integrate this into the jQuery repository if it is desired.

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

Changed June 03, 2011 01:58PM UTC by john comment:9

description: 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). \ \ * [https://github.com/kflorence/jquery-deserialize Source Code] \ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples] \ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests] \ \ I would be happy to integrate this into the jQuery repository if it is desired.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).\ \ * [https://github.com/kflorence/jquery-deserialize Source Code]\ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples]\ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests]\ \ I would be happy to integrate this into the jQuery repository if it is desired.

-1, Sounds like a good plugin.

Changed June 05, 2011 09:33PM UTC by ajpiano comment:10

description: 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).\ \ * [https://github.com/kflorence/jquery-deserialize Source Code]\ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples]\ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests]\ \ I would be happy to integrate this into the jQuery repository if it is desired.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). \ \ * [https://github.com/kflorence/jquery-deserialize Source Code] \ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples] \ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests] \ \ I would be happy to integrate this into the jQuery repository if it is desired.

-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...

Changed June 06, 2011 02:45PM UTC by scottgonzalez comment:11

description: 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). \ \ * [https://github.com/kflorence/jquery-deserialize Source Code] \ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples] \ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests] \ \ I would be happy to integrate this into the jQuery repository if it is desired.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).\ \ * [https://github.com/kflorence/jquery-deserialize Source Code]\ * [http://kflorence.github.com/jquery-deserialize/examples/ Live Examples]\ * [http://kflorence.github.com/jquery-deserialize/tests/ Unit Tests]\ \ I would be happy to integrate this into the jQuery repository if it is desired.

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

Changed June 07, 2011 06:53PM UTC by rwaldron comment:12

milestone: 1.next1.7
resolution: → wontfix
status: openclosed

Closing per 1.7 roadmap meeting resolution