Forums > Javascript

Arguments to reference who sent message in JS function

December 17, 2009 | 8:10 pm

In JS is there a way to get the name or object reference of who called the function? If I have a message box named "Bert", is there a way to grab that name/reference say in a function anything()? This is regarding directly connected and non connected js objects.


December 18, 2009 | 11:00 am

Javascript doesn’t know how objects are connected together so this isn’t currently possible. The workarounds are to either use a different inlet or to [prepend name] the value so you can target it with a global funcyion.

lh


December 18, 2009 | 3:52 pm

Thanks. I was contemplating prepend. Would you happen to know the answer to my other post, it’s driving me nuts:

http://cycling74.com/forums/topic.php?id=23478


Viewing 3 posts - 1 through 3 (of 3 total)