2 Replies Latest reply on Jun 27, 2009 2:30 PM by gkaiseril

    Is there any way to find out "Where am I" after a Field has been clicked?

    Ramon F Herrera Level 1

      My question refers to the "Mouse Up" JS which are so frequently associated with a Field.

       

      I tried this code:

       

      console.println(this.rect);

       

      and the output was: "undefined".

       

      I then tried this:

       

      console.println(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.

       

      TIA,

       

      -Ramon