//newCell.onMouseOver = function() {doThis()}
Thanks Doug,
but that doesn't do anything either, no error though.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 10 September 2003 19:24
To: CF-Talk
Subject: RE: js question


to add new functions on the fly use this format

obj.event = function() {foo(goo)};
for example:
v.onblur=function() {checkBool(this)};
and in your case
newCell.onMouseMove=function() {doThis()};
should work.

Note that 'function()' above is not a specific function, this is the command
syntax.


HTH

Doug


>-----Original Message-----
>From: John McCosker [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 2:10 PM
>To: CF-Talk
>Subject: js question
>
>
>Hi,
>
>I You can dynamically create <tr> and <td> elements on the fly,
>like,
>
>var newRow=cell_root_table.insertRow(0)
>
>then add attributes like,
>
>newRow.vAlign='top'
>
>then to add a cell,
>
>var newCell=newRow.insertCell(0)
>
>but I can't seem to add event handlers on the fly,
>like newCell.onMouseMove='doThis()',
>
>Is there a way to do this?
>
>J
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to