pass a reference to an object

I've your grid placed on an object that shows a DIV element floating over an area of the page.
The grid has an action ('onSelect') asociated to the ondblclick event to select the current row.
I want to pass a reference of the container object of the grid to the function asociated with the selection action, so I can send a message to the container after making the selection on the grid (ie 'hide();')
Can you show me an example of how to do this?
April 28,
obj.setAction("click", function(src){

grid runs the action handler as its own method, so 'this' refers to the grid JS object, this.element() is a reference to the grid HTML element (DIV) and you can use parentNode to obtain reference to the container.
Alex (ActiveWidgets)
April 28,
Doing this I get a reference to the HTML element of the container. Thats ok, but I need a reference to the user object that creates the container in order to send him a message.

The object populate a DIV element whit the HTML generated by your grid. I've a function that creates the grid and send it to this object I made. But I need to invoke an particular method when the selection of one row occurs.

Thanks for the answers.
April 29,
Sorry, I am lost. When you say "user object" - what exactly is it?
Alex (ActiveWidgets)
April 29,
User object is one object (created by my) that creates the DIV to show a popup containing your grid.
I need to invoke a method of this object (to say "hide" when the user selects a row from the grid) in the action attached to the doubleclik event on the grid.

If I use this.element().parentNode only get access to the DIV element, but no to my object.

I hope I make my self more clear this time. Excuse my lame english!!
Thank you.
April 30,
Sorry Sergio, I still don't understand the question. Maybe you should post a code fragment to make it more clear.
Alex (ActiveWidgets)
May 4,

This topic is archived.

See also:

Back to support forum