I tried that too and got the same error.
I was given the javascript code that started like this (where dropBox
was the id of the div)
var dropBox = document.getElementById("dropBox");
addEvent(dropBox, 'drop', droppedHandler);
addEvent(dropBox, 'dragover', allowDrop);
And I was asked to add this to our GWT app where the widget is now a
RichTextArea. Initially I used getElement() and passed that directly
into the init method so the JSNI method used the passed elem
directly...but that gave the same exception. I just don't understand
why.
Thanks,
-Dave