Search code examples
jquerytizentizen-web-app

Proper Way of Adding jQuery to a Tizen Web App for Wearables?


I've created a new Tizen web app for wearables following the official Getting Started guide. Then, I've searched the web for hours for what how to properly add jQuery to that project. I've read multiple times that the Tizen SDK already comes with a jQuery distribution, e.g. here:

the Tizen Web Framework incorporates a custom themed jQuery Mobile installation

But its never said how to actually add this jQuery installation to my Tizen web app project. Sure, I can download my own distribution and put it into my project folder; but as far as I understand, that's not what the SDK intends.

Some other sources say that we should use the "jQuery Template" from File/Tizen Wearable Web Project/Template/Basic. But there is no such template in the current SDK:

There is no "jQuery" template.

Question: How to add the jQuery (Mobile) installation, that comes with the Tizen web framework, to my Tizen web app project?


Solution

  • Follow following steps

    1. Open Tizen SDK IDE
    2. File -> New Project -> Tizen Web Project
    3. New Tizen Web Project dialog window will be opened
    4. Go to Sample tab,
    5. Under Wearable-2.3.1 go to UI
    6. And Create the UI Component sample. And Now explore the UIComponent Project in Project Explorer, you can see the lib folder. That's the customised the jquery known as Tizen Advanced UI(TAU).

    Update: Starting with SDK version 2.3.1, jQuery isn't included any more. So users of SDK version 2.3.1 (and probably higher) should add jQuery manually to their project.