jQuery and iframes and weird positioning: is there a workaround?
I've got a draggable thing outside an iframe, and a droppable target inside it. Here I've shown the iframe as containing a snippet of the HTML that is loaded by its src attribute. <div id="draggables"> <img src="drag-me.gif"> </div> <iframe src="iframe-src.html" id="iframe"> <!-- HTML gubbins --> <div id="droppable"> </div> <!-- More HTML gubbins --> </iframe> I use some jQuery (UI draggable/droppable) to do stuff: $("#iframe").load(function() { var $this = $(this); var contents = $this.contents(); contents.find('#droppable').droppable({ drop: function (event, ui) { alert('dropped'); } }); $('