I've tried the code in this thread but it doesn't seem to work for me. I'm using Firefox 15, it works in Chrome.
This is my code :
<!DOCTYPE html>
<head>
<title>A Simple Draggable Object</title>
</head>
<body>
<script>
window.onload=function() {
var dragItems = document.querySelectorAll('[draggable=true]');
for (var i = 0; i < dragItems.length; i++) {
addEvent(dragItems[i], 'dragstart', function (event) {
// store the ID of the element, and collect it on the drop later on
event.dataTransfer.setData('Text', this.id);
});
}
};
</script>
<h1>Test #1: A Simple Draggable Object</h1>
<div draggable="true">This text should be draggable.</div>
</body>
</html>
Any help is appreciated