Here's the problem: I have a div, id=mydiv, which I clone using:
var clonedDiv = document.getElementById('mydiv').cloneNode(true);
I then set the id to be mynewdiv:
cloneDiv.id = "mynewdiv"; //not using setAttribute to accomodate IE
I then remove the original div:
Element.remove(document.getElementById('mydiv'));
I then insert the new div with:
document.getElementsByTagName("body").item(0).insertBefore(cloneDiv,document.getElementsByTagName('body').item(0).firstChild);
I then make the cloneDiv draggable:
var mydrag = new Draggable(cloneDiv.id, {revert:false});
It drags fine in FF 1.5, won't drag in IE. No JS errors reported in IE. Also
tried making it draggable with: new
Draggable(document.getElementById('mynewdiv'), {revert:false}); and again it
works fine in FF, not in IE. Any ideas why?
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs