February 2008

You are browsing the archive for February 2008.

yui – custom event

Note to self on how to setup custom even.
Step 1: Define a custom event

var onCustomEvent1 = new YAHOO.util.CustomEvent(‘onCustomEvent’);

Step 2: Make methods subscribe to the event

onCustomEvent1.subscribe(method1);
onCustomEvent1.subscribe(method2);

etc.You can also pass arguments to the subscribe method, which can be accessed by the subscribed method, as explained below.
Step 3: Whenever that event is supposed to be triggerd, cause the [...]

Though i am not a believer of non standard stuff, but recently was asked this question on IRC on how to launch applications via a hyperlink, it was probably alright to do that in the users case, since this was for an Intranet and everyone had that software installed and were running windows.  The call:// [...]

Code Quality Measurement