3.2.0

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
April 29,
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)
April 29,

This topic is archived.

See also:


Back to support forum