When working I desire to share; when sharing I desire to work :D.

Dynamic arguments binding with OpenSocial message bundle

1. Problem

- Working with OpenSocial message bundle for localization, sometimes it's necessary to bind dynamic arguments to the message. For example, we have greeting message like this: Hello {user} in which user will be replaced by user's name. But currently with OpenSocial api, we can't. We just can get message bundle by the key without passing any arguments for substitution.

- So this is my approach: using eXo.social.Locale.getMsg(key) the same as prefs.getMsg(key) and eXo.social.Locale.getMsg(key, [val1, val2,...]); for dynamic arguments binding with message bundle.

Multiple event handlers for an element in JavaScript

This afternoon I caught a question posted in phpvietnam group:

"I have an input element with the property onclick="doSomeFunction();". Now I want to add another function, ie onclick="doSomeFunction(); doSomeFunction2();", can I do this with JavaScript? Thanks in advance!" (translated)

Source (in Vietnamese): http://groups.google.com/group/phpvietnam/browse_thread/thread/c7a8688875a320c3

After answering his question, I just want to share my experience when working with JavaScript event handler. I will show you 4 event registration models for the time beings of its use; the way to use context and this keyword in function handler. My approach is that the event object will be passed as 1st parameter to the function handler and this has to refer to the element triggering that event.

End of 2009 and what's next for 2010?

Ok, this is the end day of the year 2009 and now from I wanna blog again :d. I have many things to write and I will try to spend some time for it. It's nearly 8 months since my last blog post, so in this post, I just wanna remind some of my remarkable time and event.

- February: Joined eXo Platform SEA and worked as document writer, then join eXo Social team as Java Developer.

Working for eXo Platform or Google?

I'm thinking so much about this. I've got an offer from Google to work in Singapore for about 2 years after my OpenSocial application took the 2nd place in OpenSocial Application contest in SE Asia. However, I can't touch the Ipod Touch because of customs official issue but I coud get the money instead :(. Shannon Madison and I have been discussing about it in recent days. She said that someone from Google will take part in BarCamp Hanoi 2009 and will tell us about some stratergy in South East Asia in general and in Vietnam for specific.

Extended Deadline for Barcamp Hanoi 2009 Logo Design Contest

The first submission to Barcamp Hanoi 2009 Logo Design Contest

The 1st submission to Barcamp Hanoi 2009 Logo Design Contest

At present we are having some logo submitted for the contest and we know that the time seems so short for you all to complete your logo for submission.

OSDE - Great for OpenSocial Developers :)

This afternoon I just hit with this project: OSDE - OpenSocial Developement Environment and loved it at first sight :). This project is awesome for OpenSocial developers to work on their own environment. I remembered on the first days of developing app, registered all opensocial containers, make friends [for test :)] and then test the app. Somehow boring steps and not the pro way of app development. What if you can not have internet connnection but you still want to test you opensocial app. OSDE - OpenSocial Developement Environment is our solution. This is a great module for Eclipse :).

Barcamp Hanoi 2 will come soon :)

Hi everyone,
To tell the truth, I'm a little envious of some HCM city (Saigon) geeks' activities, especially about Barcamp Saigon 1 and their #H3 :(. What about in Hanoi? Just correct me if I'm wrong but it seem there

My first working day at eXo Platform SEA

Today is my first working day at eXo Platform SEA, a nice start working day :). Hey, so long no post from my blog sice Tet holiday, now I will blog more often.

Music-Engine Indexer Testing

Just the time for test Indexer, input is a link to play a song, output is info of that song. Currently, I am testing some other music sites and coding for music-engine on the server-side.

You can test the Indexer at: http://musicengine.byethost13.com/

Free host :).

Syndicate content