Skip to content

Prototype.js-equivalent object serialization.

Notifications You must be signed in to change notification settings

csimons/jquery-prototype-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

jquery-prototype-serializer

jquery-prototype-serializer is a jQuery plugin that allows you to serialize forms as objects, equivalently to the Prototype serialize(true) call. This can be useful when porting front-end code from Prototype.js to jQuery when back-end code expects a serialized object.

To use, simply include the plugin's .js file in your project, and then, wherever you previously were using:

$('foo').serialize(true)    // Here $ is Prototype's selector function.

You can now instead use:

$('#foo').serializeToObject()  // Here $ is jQuery's selector function.

That's all there is to it!

Acknowledgements

Thanks to John Newman for robustness improvements to the initial logic.

Licensing

Copyright 2013 Christopher L. Simons

This code is distributed under the MIT/X Consortium License, which can be found in the in sole source code file.

About

Prototype.js-equivalent object serialization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published