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

adam hyde adam.hyde at sourcefabric.org
Wed Jun 20 18:14:59 UTC 2012


ok, it seems to work but strangley
http://www.booki.cc/fiddling-while-rome-burns/_draft/_v/1.0/why-this-book-was-written/

i copied the demo code exactly i think. what happens, and i noticed this 
on the demo too, is that the annotations are not always saved...any idea 
what this might be?


adam

On 06/20/2012 06:56 PM, Nick Stenning wrote:
> On 2012-06-20 12:51, adam hyde wrote:
>> hi
>>
>> Heres the url:
>> http://www.booki.cc/fiddling-while-rome-burns/_draft/_v/1.0/why-this-book-was-written/
>>
>>
>> I can get the annotator working but it doesnt save to the annotateit store
>
> Right. Well the very first thing I see when loading up that page with a
> developer console enabled is this error:
>
>    Uncaught ReferenceError: getAuthToken is not defined
>
> You've copied code from the demo that references a function
> "getAuthToken" but you haven't copied that function.
>
> I would warn you (even though you've indicated that you're already aware
> of this) that this is *not* the correct way to issue authTokens, it's
> just a quick hack for the purposes of a demo. See the documentation at:
>
>    https://github.com/okfn/annotator/wiki/Authentication
>
> -N
>




More information about the annotator-dev mailing list