My question refers to the "Mouse Up" JS which are so frequently associated with a Field.
I tried this code:
and the output was: "undefined".
I then tried this:
and the output was: [object Doc]
so, I guess I am making progress, but I am too high on the object hierachy.
What I need is the rect or the name, or some way to determine which of the many fields with identical code has been clicked.
That kind of generalization (same code in many fields) sure saves a lot of time and coding.
As noted you can use the 'event' object's 'rect' property to get the quads, corner' points of the field that you clicked on. You can also access other event properites in the same way like 'event.target.name', 'event.targetName', or 'event.type' for example. Using the 'join()' method can provide a clearer listing of the quads for for the event, console.println(event.target.rect.join(", "));'