Re:Amplify: a jQuery component library for solving common we...
by walkon on Thursday February 17, 2011 @05:53PM
(#2233269)
For concern #2, If they parameter names are found in the request, they are replaced in the url and removed from the POST form data. Full explaination here: http://amplifyjs.com/api/request/#url_substitution/routing
Re:Amplify: a jQuery component library for solving common we...
by bricestacey on Thursday February 17, 2011 @05:59PM
(#2233289)
This is true, but the examples are incomplete. The "RESTful" POST example excludes parameters in the URL. Small mistake, but very confusing.
I'd fix it, but they don't mention how to submit patches.
Re:Amplify: a jQuery component library for solving common we...
by balu on Thursday February 17, 2011 @06:39PM
(#2233418)
They do mention it. It's a little bit hidden, but see http://amplifyjs.com/community/#pull_requests
1. I don't like magic string names like "AjaxExample1". Why not return an object, and use:
var AjaxExpample1 = amplify.request...
2. It is not clear how you mix get parameters and post data. If I want to POST to "/users/{id}/", how do I separate the post values from the parameter?