03-26-2014 04:30 PM
So I am having a hard time implementing the BBUI.js using webworks 2.0.
I downloaded it from. https://github.com/blackberry/bbUI.js Now the instructions are not very clear on how to install. I managed to find the REadme file within the pkg\bb10 folder. So it says for installing the bbui.js webworks extension to go to C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK a.b.c.d_
So on my PC that is C:\Program Files\BlackBerry\BB10 WebWorks SDK 18.104.22.168.
Next the instructions say: "In this directory you will find a **Framework\ext** directory. Simply create a **bbui** sub directory and copy all the contents from the above **ext** directory
into your new sub directory. It will end up looking like the following:
Howerver ther eis no Framework\ext directory. How did others implement the bbui.js webworks extension within 2.0.
Thanks in advance.
Solved! Go to Solution.
03-26-2014 05:06 PM
Figured it out. Appeartly lots of the docs have not been updated for 2.0.
We should be using cordova.js instead of webworks.js
And not webworksready but deviceready
alert("Im in web works ready function");
Well atleast this post is out there for anyone new to Webworks 2.0 and ran into the same issue I did.