WidgetGap is a W3C widget that renders in the Apache Rave portal through Wookie. This widget can also be converted into a native mobile application with PhoneGap.
2. Apache Wookie (incubating)
O Java server application that serves W3C
widgets
O Integrated into Apache Rave
O http://incubator.apache.org/wookie/
3. Apache Cordova (incubating)
O Platform to create native mobile apps
from HTML, CSS and Javascript (W3C
Widgets)
O Open source project behind PhoneGap
O http://incubator.apache.org/cordova/
4. W3C Widgets
O […] a packaging format and metadata for
a class of software known as widgets.
O Widgets (…) are full-fledged client-side
applications that are authored using
technologies such as HTML and then
packaged for distribution.
O http://www.w3.org/TR/widgets/
6. The challenge
Make cross-domain (Ajax) requests work:
Config.xml:
<access origin="http://www.example.com"/>
Javascript:
var loc = productLink;
if (window.widget && typeof window.widget.proxify
== 'function') { loc = widget.proxify(loc); }
Xcode
"External Hosts" entry in Resources/Cordova.plist