Netvibes Developer Meetup - Paris - May 2008 - Presentation Transcript
Developer Meetup
Paris - 30 Mai 2008
Proprietary and confidential. No part of this report may be forwarded without the express permission of the author.
Widgets!
• Web Widgets
(Netvibes, IGoogle)
• Desktop Widgets
(Vista, Dashboard, Yahoo!)
Proprietary and confidential. No part of this report may be forwarded without the express permission of the author.
UWA
• a simple, elegant, flexible web widget
format
• announced at Future of Web Apps
in February 2007
• based on web standards
(html, javascript, css, xml)
Developer Meetup - Paris - 30 Mai 2008
Why UWA?
Developer Meetup - Paris - 30 Mai 2008
Works in various
contexts
• works on ANY device, platform, software
that support web standards
• just need to adapt with a few lines
• really !
Developer Meetup - Paris - 30 Mai 2008
Developer Meetup - Paris - 30 Mai 2008
UWA Format
Content Model of a UWA widget
• Metadata
• Preferences
• Scripting
• Style
• Content
Developer Meetup - Paris - 30 Mai 2008
UWA Format
What would Google do?
General Format Custom XML
Metas Datas <ModulePrefs>
Preferences <UserPrefs>
Style Blob in <Content>
Scripting Blob in <Content>
Content Blob in <Content>
Developer Meetup - Paris - 30 Mai 2008
Developer Meetup - Paris - 30 Mai 2008
UWA Format
But wait,
why reinvent the wheel ?
General Format XHTML
Metas Datas <title> <meta>
Preferences <widget:preferences>
Style <style>
Scripting <script>
Content <body>
Developer Meetup - Paris - 30 Mai 2008
UWA Format
Content Model of a UWA widget
• Metadatas
Developer Meetup - Paris - 30 Mai 2008
UWA Format
Content Model of a UWA widget
• Preferences
Developer Meetup - Paris - 30 Mai 2008
UWA Format
Content Model of a UWA widget
• Scripting
Developer Meetup - Paris - 30 Mai 2008
UWA Format
Content Model of a UWA widget
• Style
Developer Meetup - Paris - 30 Mai 2008
UWA Format
Content Model of a UWA widget
• Content
Developer Meetup - Paris - 30 Mai 2008
Developer Meetup - Paris - 30 Mai 2008
UWA Javascript API
• Widget object
• Environment object
• Data request
• DOM Extensions
Developer Meetup - Paris - 30 Mai 2008
UWA Javascript API
Widget object
• a bit like DOM
document or window objects
• widget.body
• widget.setValue() getValue()
• widget.onLoad = function() {}
Developer Meetup - Paris - 30 Mai 2008
UWA Javascript API
Environment object
• for implementors
• interface between the widget object and the
execution environment
• to port UWA to a new platform, just extend our base
Environment class
Developer Meetup - Paris - 30 Mai 2008
UWA Javascript API
Data request methods
Set of methods that cover simple Ajax scenarios :
• UWA.Data.getFeed(url, callback)
• UWA.Data.getJson(url, callback)
• UWA.Data.getText(url, callback)
• UWA.Data.getXML(url, callback)
Take care of proxying, caching and error handling.
Developer Meetup - Paris - 30 Mai 2008
UWA Javascript API
DOM extensions
• Array
• String
• HTML elements
Developer Meetup - Paris - 30 Mai 2008
Competition
Developer Meetup - Paris - 30 Mai 2008
Standardisation
Developer Meetup - Paris - 30 Mai 2008
break;
Developer Meetup - Paris - 30 Mai 2008
REST APIs
Developer Meetup - Paris - 30 Mai 2008
REST APIs
rest.netvibes.com
• Widget Collections
• Activities
Developer Meetup - Paris - 30 Mai 2008
REST APIs
http://rest.netvibes.com/universe/{username}
Developer Meetup - Paris - 30 Mai 2008
REST APIs
http://rest.netvibes.com/universe/{username}?format=json
Developer Meetup - Paris - 30 Mai 2008
Rest API roadmap
• Public Data (now)
• Private Data (oauth) (summer)
• Read / Write (september)
Developer Meetup - Paris - 30 Mai 2008
Netvibes.org
netvibes open source components
Developer Meetup - Paris - 30 Mai 2008
UWA runtime
• javascript libraries to run UWA widgets
• let you port UWA where you want
Developer Meetup - Paris - 30 Mai 2008
PHP Exposition libraries
• PHP classes to
• interact with Netvibes backend
• parse & compile UWA widgets
Developer Meetup - Paris - 30 Mai 2008
Exposition PHP Server
• a widget server based on
Exposition PHP Libraries
• render widget through iframes
• data proxy
Developer Meetup - Paris - 30 Mai 2008
Applications
• mobile market applications
Developer Meetup - Paris - 30 Mai 2008
Developer Meetup - Paris - 30 Mai 2008
Contact : francois@netvibes.com
UNITED KINGDOM FRANCE USA CHINA
London Paris San Francisco Dahlian
52, New Inn Hall Street 38, rue du Sentier 840 Battery Street 552
32 7
Oxford - OX12DN Paris - 75002 94111 San Francisco
Proprietary and confidential. No part of this report may be forwarded without the express permission of the author.
0 comments
Post a comment