Michał Kalbarczyk

UWA Extras

14 April 2007

Finally, i find a simple and clean way to extend UWA API. Now you can get document, window and even app object from your widget.

All you can do to add to your widget something like this:

var extras = {
  document: (Function("return document;"))(),
  window: (Function("return window;"))(),
  app: (Function("return App;"))()

After this, you have access to document, window and all your netvibes settings, modules, tabs etc. Sample code to display all loaded modules:

for(var i=0; i < extras.app.moduleList.length; i++){

Or tabs:

for(var i=0; i < extras.app.tabList.length; i++){

Display page title and URL:


Check out working example: here.

Works only in Netvibes environment. So. Now we have a lot of new options to make some interesting widget :)

You should make your module inlined by checking ‘Inline this widget’ in edit menu.