This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: dhtml write td event ?
It's not a secret anymore!