[annotator-dev] setting up with js to use annotate store

adam hyde adam.hyde at sourcefabric.org
Thu Jun 21 10:12:32 UTC 2012

ok i did this, i also tried it before and thought i had it wrong because 
the behaviour was odd, but it could be a js conflict on my side. will 
look into it

just in case however...it seems that all annotations are saved but not 
loaded when you refresh the page...cant for the life of me see why not

you can see it if you annotate anything in this page:


On 06/21/2012 12:08 PM, Nick Stenning wrote:
> On 21 Jun 2012, at 09:15, Rufus Pollock<rufus.pollock at okfn.org>  wrote:
>> On 20 June 2012 22:54, Nick Stenning<nick at whiteink.com>  wrote:
>>> Really, I think you're making this far more complicated than it needs to
>>> be by including the demo code. If you want AnnotateIt users to be able
>>> to annotate your document, it's two lines of code:
>>>     $('.content').annotator()
>>>                  .annotator('setupPlugins');
>>> If you want to use your own users, then it's four lines of code:
>>>     $('.content').annotator()
>>>                  .annotator('setupPlugins', {
>>>                    tokenUrl: 'http://example.com/getToken'
>>>                  });
>>> Just take the time to implement the token endpoint (something you'll
>>> have to do anyway -- as including the consumer key in the front-end is a
>>> big no-go) and all these problems will go away, I promise =).
>> Isn't it also possible just to have users log in to annotateit and
>> then you don't need this token endpoint?
> Yes. As I explain in the email above.
> -N

More information about the annotator-dev mailing list