wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15376
when you assign event handlers functions you do it like

obj.eventHandler = fnc;


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

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: dhtml write td event ?
Similar Threads
raw HTML in Mozilla
help with Prototype
how to check the radio button using javascript?
can tables be displayed inline
font size