Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
85
rated 0 times [  87] [ 2]  / answers: 1 / hits: 15001  / 10 Years ago, mon, october 6, 2014, 12:00:00

I'm trying to implement basic drag&drop functionality with HTML5. It works totally fine in Chrome, but in IE10 I get an 0x8000ffff - JavaScript runtime error: Unexpected call to method or property access. error in the line setData.



function handleDragStart(e) {
e.dataTransfer.effectAllowed = 'move';
e.dataTransfer.setData(dropTarget, g.destination);
}

var cols = $(# + g.source + tbody > tr);
[].forEach.call(cols, function (col) {
col.addEventListener('dragstart', handleDragStart, false);
});


What am I doing wrong?


More From » jquery

 Answers
4

For those who are looking for an answer:



getData() and setData() attribute must be called exactly text, since u can use any parameter in other browsers (which actualy makes lot of sense - IE rocks again), those other answers here are useless.


[#42071] Saturday, October 4, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
isham

Total Points: 69
Total Questions: 86
Total Answers: 86

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
;