wood burning stoves
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dhtml write td event ?" Watch "dhtml write td event ?" New topic

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

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

obj.eventHandler = fnc;


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

I agree. Here's the link: http://aspose.com/file-tools
subject: dhtml write td event ?
It's not a secret anymore!