
Problems with AJAX and IE
September 18, 2007I had set up a page with a nice drag and drop interface and it worked lovely in Firefox and Opera. But when I went to try it in IE, it would work once and then not again.
What was happening was that after the drop, the page would refresh and the drop area would be created again inside of the old one. Firefox ignored it but IE decided that it wanted things to be right for a change.
So adding this little bit of code between script tags:
if (document.all) { Droppables.drops = [] }
before the creation of the drop area meant that it would clear out the area for a new one to be created.
This page has the full explanation:
AJAX problem with drag and drop for Internet Explorer using Scriptaculous