[annotator-dev] How to get all created annotations on DOM loaded?
Ruslan Korolev
rusik3 at gmail.com
Thu Mar 27 13:07:21 UTC 2014
i solved this problem by wrapping JSON response in ROWS property( find in
source but after i noticed that it was in docs) :)
2014-03-27 14:05 GMT+02:00 rusik <rusik3 at gmail.com>:
> How to get all created annotations on DOM loaded?
> I have some typical initializing code in coffee:
>
> *text = $(".solution-text")[0]*
> *devStore =*
> * type: Annotator.Plugin.Store*
> * prefix: url*
> * urls:*
> * create: "/"*
> * read: "/:id"*
> * update: "/:id"*
> * destroy: "/:id"*
> *devAnnotator = new Annotator(text,*
> * store: devStore*
> *)*
>
> In console/network i have a search request , and it is ok, and i am
> getting json in this format:(like in doc without permissions)
>
> *[{"id":22,"quote":"morbi","text":"25","uri":"http://localhost:3000/notebook/courses/7/personal/exercises/9/solutions/15/check"
> <http://localhost:3000/notebook/courses/7/personal/exercises/9/solutions/15/check>,"created":"2014-03-27T13:28:22+04:00","updated":"2014-03-27T13:42:27+04:00","ranges":[{"end":"","endOffset":27,"start":"","startOffset":22}]}]*
>
> But no annotations is highlighted, why? :-(
> ( i am having annotator.js from github rep clone)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20140327/f00a9e27/attachment-0004.html>
More information about the annotator-dev
mailing list