aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes dhtml write td event ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dhtml write td event ?" Watch "dhtml write td event ?" New topic
Author

dhtml write td event ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
<td id='sampleCell' ondragenter='dragEnterCell();'>...</td>

how to use DHTML to write this event to a new td cell?

oCell.innerHTML = "...";
oCell.dragenter="dragEnterCell();"; // doesn't work
oCell.ondragenter="dragEnterCell();"; // doesn't work

how to work out ? Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
when you assign event handlers functions you do it like

obj.eventHandler = fnc;

or

obj.eventHandler = function(){fnc();}

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: dhtml write td event ?