Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize agility object #109

Closed
garygreen opened this issue Oct 17, 2013 · 3 comments
Closed

Serialize agility object #109

garygreen opened this issue Oct 17, 2013 · 3 comments

Comments

@garygreen
Copy link

Is it possible to serialize an agility object, much like jQuery's .serialize() ?

@chay-xu
Copy link

chay-xu commented Oct 18, 2013

it is no way to use the selector. This is my fork repo, because I want to write a pop-up layer plugin, this repo helps me, you can go look http://agilityjs.com

------------------ 原始邮件 ------------------
发件人: "garygreen";
发送时间: 2013年10月17日(星期四) 晚上9:14
收件人: "arturadib/agility";
主题: [agility] Serialize agility object (#109)

Is it possible to serialize an agility object, much like jQuery's .serialize() ?


Reply to this email directly or view it on GitHub.

@phonovision
Copy link

Do you really want to serialize the whole agility object?

Usually nothing more than the model is of interest. If necerssary, format and style also can be serialized, but (controller) methods need special treetment.

@garygreen
Copy link
Author

Agility can be a bit cumbersome when working with the container, as it's difficult to get the full 'serialized' object -- i.e. when working with relationships and you wish to send the full tree during a POST save request.

Maybe it's the way I'm using the container i.e. .append that proves restrictive. Lets say you .append to the main collection, then the object that was appended too has things appended to it -- it should be easy to add a 'serialize' object that will return the full 'tree' as per all the containers and children for each agility object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants