attach a listener or event to a node in a node list
trying to add an event listener to a node in a loop. Getting flagged by spam filter while trying to make this post so I will keep it short. anyone know how to do this?
Here is what I have...
I get the node list by calling getElementsByTag (A) which works fine and returns the node list. Then a call count to check if the size of the list is what is should be, works fine. then I try to cycle through a loop and attach a listener to each node
In the documentation for CK 4 it says to use get item call and then use the on call to add the function on mouse over and that does not seem to work. I tried it with many different variations, even tried attach Event and attachListener and nothing seems to work. Anyone know how to attach a listener to a node in a node list while gong through a loop?
Here is what I have...
Here is what I have...
I get the node list by calling getElementsByTag (A) which works fine and returns the node list. Then a call count to check if the size of the list is what is should be, works fine. then I try to cycle through a loop and attach a listener to each node
and more..
and more..
(spam filter made me break all this into chunks)
here is where it breaks.
In the documentation for CK 4 it says to use get item call and then use the on call to add the function on mouse over and that does not seem to work. I tried it with many different variations, even tried attach Event and attachListener and nothing seems to work. Anyone know how to attach a listener to a node in a node list while gong through a loop?