:: Forum >>

pass parameters to obj.raiseEvent()?

I am trying a AW combo which has an event function:

var combo=new AW.UI.Combo;
combo.onItemClicked = function(event, index){alert(index);};

I need to trigger the combo's onItemClicked event by:

obj.raiseEvent("onItemClicked");

I am wondering how to pass the parameters, index, to the raiseEvent().

Thanks,
mrhsh
Tuesday, April 29, 2008
just add them after event name -

obj.raiseEvent("onItemClicked", event, index);

if this is outside an event handler - put an empty object {} instead of the event argument.
Alex (ActiveWidgets)
Tuesday, April 29, 2008

This topic is archived.


Back to support forum

Forum search