« Return to Thread: FilteringTable double click

Re: FilteringTable double click

by Tom Trenka :: Rate this Message:

Reply to Author | View in Thread

Can't answer you on the event question (though you shouldn't ever assign an event directly like that), but I can say that you should probably attach that event handler either to the tbody element or to the table element, and not to every row.  That way it's only created once, and you don't have to try to reassign it to each new row that is created.

trt

mengel wrote:
In setting up the double click events for a Filtering Table
programmatically, how come this works:

         dojo.event.connect(row[i], "ondblclick", BuildCodes,
"rowSelected");

but this doesn't:

         row[i].ondblclick = BuildCodes.rowSelected;

where row[i] is the row of the FilteringTable that I'm working with.

Are they not programmatically equivalent?


Matthew Engel
Senior Programmer/Analyst
State University of New York at Stony Brook
mengel@notes.cc.sunysb.edu
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest@dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: FilteringTable double click