<br><font size=2 face="sans-serif">Great. &nbsp;I tried connecting it to
the tbody element, but it didn't work, but connecting it to the table itself
worked fine. &nbsp;Thanks for saving my users some CPU.</font>
<br>
<br><font size=2 face="sans-serif">Working code:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; var body = document.getElementById('aBLTblePlaceHolder');
</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; dojo.event.connect(body,
&quot;ondblclick&quot;, BuildCodes, &quot;rowSelected&quot;); &nbsp; &nbsp;
&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">Did Not work:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; var body = document.getElementById('aBLTblePlaceHolder').getElementsByTagName('tbody');</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; dojo.event.connect(body,
&quot;ondblclick&quot;, BuildCodes, &quot;rowSelected&quot;); &nbsp; &nbsp;
&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Matthew Engel<br>
Senior Programmer/Analyst<br>
State University of New York at Stony Brook<br>
mengel@notes.cc.sunysb.edu</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Tom Trenka &lt;dojo-interest@dept-z.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: dojo-interest-bounces@dojotoolkit.org</font>
<p><font size=1 face="sans-serif">12/20/2006 10:24 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
dojo-interest@dojotoolkit.org</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">dojo-interest@dojotoolkit.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Dojo-interest] FilteringTable double
click</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2><br>
Can't answer you on the event question (though you shouldn't ever assign
an<br>
event directly like that), but I can say that you should probably attach<br>
that event handler either to the tbody element or to the table element,
and<br>
not to every row. &nbsp;That way it's only created once, and you don't
have to<br>
try to reassign it to each new row that is created.<br>
<br>
trt<br>
<br>
<br>
mengel wrote:<br>
&gt; <br>
&gt; In setting up the double click events for a Filtering Table <br>
&gt; programmatically, how come this works:<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dojo.event.connect(row[i], &quot;ondblclick&quot;,
BuildCodes, <br>
&gt; &quot;rowSelected&quot;);<br>
&gt; <br>
&gt; but this doesn't:<br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;row[i].ondblclick = BuildCodes.rowSelected;<br>
&gt; <br>
&gt; where row[i] is the row of the FilteringTable that I'm working with.<br>
&gt; <br>
&gt; Are they not programmatically equivalent?<br>
&gt; <br>
&gt; <br>
&gt; Matthew Engel<br>
&gt; Senior Programmer/Analyst<br>
&gt; State University of New York at Stony Brook<br>
&gt; mengel@notes.cc.sunysb.edu<br>
&gt; _______________________________________________<br>
&gt; Dojo FAQ: http://dojo.jot.com/FAQ<br>
&gt; Dojo Book: http://manual.dojotoolkit.org/DojoDotBook<br>
&gt; Dojo-interest@dojotoolkit.org<br>
&gt; http://dojotoolkit.org/mailman/listinfo/dojo-interest<br>
&gt; <br>
&gt; <br>
<br>
-- <br>
View this message in context: http://www.nabble.com/FilteringTable-double-click-tf2829024.html#a7991888<br>
Sent from the Dojo mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Dojo FAQ: http://dojo.jot.com/FAQ<br>
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook<br>
Dojo-interest@dojotoolkit.org<br>
http://dojotoolkit.org/mailman/listinfo/dojo-interest<br>
</font></tt>
<br>