Page 1 of 1

Problem with Javascript in new Twitter tutorial

Posted: Fri Jul 19, 2013 4:06 pm
by Robert Manders

Just an FYI in the new Twitter tutorial (http://docs.appery.io/tutorials/build...):

In the Mapping the OAuth2 Service section, the Javascript that is provided is different that the Javascript that is used in a screenshot a little bit ways down. The screenshot JS works, but the the copy-able JS does not work.

This tutorial is awesome though.


Problem with Javascript in new Twitter tutorial

Posted: Fri Jul 19, 2013 4:24 pm
by Kateryna Grynko

Hi Robert,

Thank you for reporting this!
Could you please post here what is different?


Problem with Javascript in new Twitter tutorial

Posted: Fri Jul 19, 2013 5:19 pm
by Robert Manders

This section:

bits = o1<18 & 0x3f;
h2 = bits12 & 0x3f;
h3 = bits6 & 0x3f;
h4 = bits & 0x3f;

looks like this in the screenshot:

bits = o1<< 16 | o2<18 & 0x3f;
h2 = bits12 & 0x3f;
h3 = bits6 & 0x3f;
h4 = bits & 0x3f;

Image


Problem with Javascript in new Twitter tutorial

Posted: Fri Jul 19, 2013 5:38 pm
by Kateryna Grynko

Thank you, we'll correct this.