Closed aron closed 11 years ago
:+1:
I've added this functionality to master in the form of options to the Store plugin.
Let me know what you think.
Hi @nickstenning,
I posted a response in https://github.com/okfn/annotator/issues/172 also:
It is working great!
I would suggest that you add another option to the Store plugin so that users can choose the name of the POST variable, in case the default name 'json' conflicts with another variable.
@ronwhiz: I'm going mark this as resolved, even without allowing you to configure another POST variable. If anyone desperately needs that it should be easy enough to add and submit a pull request.
This ticket stems from issue #172 and arises from the difficulty of working with the Annotator store as it stands at the moment.
Basically this would involve supporting
application/x-www-form-urlencoded
data as well asapplication/json
and theX-HTTP-Method-Override
header (or (_method
) param in addition toPUT
andDELETE
.Backbone has a nice example of this with it's
.emulateHTTP
and.emulateJSON
flags.http://backbonejs.org/#Sync-emulateHTTP