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

Fully document the current Ajax API #8277

Closed
mrclay opened this issue May 5, 2015 · 1 comment

Comments

@mrclay
Copy link
Member

commented May 5, 2015

E.g. In ajax views I vaguely remember input is mapped into $vars, "guid" is auto-injected as the loaded "entity", and action responses have kind of special JSON auto-wrapping stuff with system_message(). AFAIK very little of this magical stuff is clearly documented.

At minimum it should be straightforward for a dev to create ajax views/actions that return JSON, and know what that JSON is going to look like.

@mrclay mrclay added this to the Elgg 2.0.x milestone May 5, 2015
@mrclay mrclay self-assigned this May 5, 2015
mrclay added a commit to mrclay/Elgg-leaf that referenced this issue May 5, 2015
mrclay added a commit to mrclay/Elgg-leaf that referenced this issue May 5, 2015
@mrclay

This comment has been minimized.

Copy link
Member Author

commented May 5, 2015

PR #8278

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue May 5, 2015
mrclay added a commit to mrclay/Elgg-leaf that referenced this issue May 5, 2015
@mrclay mrclay closed this in bfbf0ff May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.