  | |  | Tree component questions | Tree component questions
2004-02-22 - By ryanm
Back I 've been digging through the documentation on the tree control, still
trying to avoid having to build my own, and I 'm having problems due to the
lack of documentation. In the docs, the only events listed for the tree are
nodeOpen and nodeClose, but it also says that it "Inherits all events from
UIComponent, UIObject, View, ScrollView, ScrollSelectList, and List class. "
So, what I 'm trying to do is fire a function when the selected index is
changed by user interaction (clicking an item in the tree). Now, if this
made sense, then I would just use the change event to fire it. But I can 't
get the tree component to fire a change event. Am I doing something wrong,
or is there just no change event for the tree component? It *should* have
one, since it supposedly inherits all of the events from the List class.
oTreeListener = new Object();
oTreeListener.change = function(oEvnt){
trace( "fired ");
};
TreeControl.addEventListener( "change ", oTreeListener);
Why doesn 't this work?
ryanm
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104950
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |