Developers › ODIN blog

Developing for Opera Unite

February 3, 2010 · by Zi Bin Cheah

How are we doing?

Yusef is used by developers to build their Opera Unite application. It is essentially a collection of libraries to help speed up application development.

Since the launch of Yusef in October 2009, we have made several changes to this framework. Let's take a look at two of them.

libraryLoader.js

libraryLoader.js allows us to invoke libraries. With it, we can easily invoke the libraries in an Opera Unite application and choose the Yusef plugin using the Libraries.setTail function.


<script src="libraries/libraryLoader/librariesLoader.js"></script>

<script>
  Libraries.setTail( 'yusef.translation', 'yusef.ui', 'yusef.acl' );
  Libraries.load();
</script>

Previously, we had to invoke the libraries manually.

getData()

Secondly, we also have a function call getData(), which is a wrapper to return plugin and application data. We can get a return of sessionId, sessionId, serviceName, servicePathHash, hostName, username, deviceName, isHomeApp, requestSection, requestPath, isLocal, isOwner and many more.


var data = Yusef.getData(connection);

var username = data.username; // Gets the username of the person if user is logged in

var isOwner = data.visitor.isOwner; // Tells us if the person is the owner of the application

What's next?

Looking forward, we would love to see more Opera Unite applications. If you want to win prizes while building a great application, you might want to check out our Opera Unite Weekly Application challenge.

For more on Yusef, check out Shwetank Dixit's Rapid application development using the Opera Unite Yusef library or the original article about Yusef - Opera Unite Server Framework.

Readers' comments 2

Left under the original article, as archived.

  • Cutting SpoonThursday, February 4, 2010 10:31:16 PM

    Now that's useful!
  • Xander Le MechantMonday, January 23, 2012 9:43:30 AM

    So it's january 2012, Am I to assume that in the last 2 years, all developement for Unite has ceased, as nothing new has come about and no new apps have been added and no one from developement checks the forums....?

About this article

Published inODIN blog
DateFebruary 3, 2010
AuthorZi Bin Cheah
Tagsyusef, unite
OriginalInternet Archive