I have this code that is assigning a JS function to the onClick events 
of elements.

container.childNodes[i].onclick = openClose;

I would like to assign parameters so that the openClose function of 
different elements function on specific items.  I recoginize that this 
syntax is not going to work:

container.childNodes[i].onclick = openClose(paramA,paramB);

But my Google searching skills are failing me on finding how one would 
do this type task, but surely it has got to be possible.  I just can't 
imagine that it is not possible to define a function for an event 
handler that can not use parameters.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323642
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to