Login Register

tables

Drag and drop the content within table cells.

I have a large table (40 columns, > 100 rows), and I need people to be able to drag the values from one cell and place (append) them in another.

Here is what I have so far.

<table>
...
<td id='td-01-01' dojoType='dojo.dnd.Source'><div class='dojoDndItem'>foo</div></td>
...
</table>

Each td is a dnd source, and contains 1 or more divs which are dnd items.

[Solved] Tables in Widgets = problems?

Hello, world:

I'm working on a composite widget. It consists of dijit.form.ValidationTextBox and some divs that get populated with dijit.form.TextBoxes or their innerHTML gets set, depending on user input and some dojo.xhrGet action.

I've been working with this widget for awhile now with no errors, but today I'm getting an unexpected and frustrating error.

Two changes to my working code:
1. put everything in the template in a table for visual reasons.
2. added a new div to let the user know why they're getting form fields instead of innerHTML updates.

Here's my template:

Syndicate content