Web drag and drop disappointment (Trying a work-around)

I really looked forward to the update because drag and drop on the web is a big deal for my clients. To find that drag and drop does not apply to listboxes is really disappointing.

To be fair, the new drag and drop feature is great for a lot of uses, and works flawlessly on all current browsers.

The WebListBox is kind a challenge if what you want to obtain is similar to the ListBox drag and drop Desktop example, but it is not impossible. Some of the techniques posted in https://forum.xojo.com/947-we-drag-and-drop-files-into-webpage can be used.

That’s what I was looking for was a suggestion . . . thanks.

Ok . . . I’ve been working one an work-around. All I need to do is to identify the row that I’ve clicked on in the mouse down event. (the cell clicked event doesn’t take place until the mouse is released). It should work, but instead of getting the row height from me.rowheight(i) I’m getting the minimum row height.

I tried setting the minimum row height to -1 and me.rowheight(i) gave me a row height of -1.

hmmmm . . .

[quote=222427:@John Scanlan]Ok . . . I’ve been working one an work-around. All I need to do is to identify the row that I’ve clicked on in the mouse down event. (the cell clicked event doesn’t take place until the mouse is released). It should work, but instead of getting the row height from me.rowheight(i) I’m getting the minimum row height.

I tried setting the minimum row height to -1 and me.rowheight(i) gave me a row height of -1.

hmmmm . . .[/quote]

Looks like you will have to resort to JavaScript to get this. If you look at the HTML code with the browser debugger, you will see that a WebListBox is just a table.

See http://www.w3schools.com/jsref/dom_obj_tablerow.asp

You may also want to have a look at JQuery UI Library from Brock Nash.
See https://forum.xojo.com/19039-jqueryui-library-drag-drop-animations-custom-menus/0