Titanium Alloy using jquery

1.2k Views Asked by At

Am new to Titanium Appcelerator and am using Titanium Alloys to develop my Mobile App Module. As I read in Titanium docs, Alloys have built-in support for underscore.js and Backbone.js. Is it possible to use jquery to develop apps with Titanium Alloys?

1

There are 1 best solutions below

0
On

Practically no, but technically yes.

No, you can't use it in the bulk of your Titanium code because jQuery requires a DOM and Titanium does not create web-based apps, so there is not DOM. That's why DOM-less helpers like underscore.js are encouraged. That said...

Yes, you can use jQuery inside a Ti.UI.WebView in Titanium. As the webviews indeed have a DOM, they can be used in the web-based code contained in the webview.