drag and drop does not work with embedded flash
Not sure where my first message went. I have been playing around with
the drag and drop utilities but I found that if a draggable contains
an embedded flash object that it doesn't work. Is this normal or is my
there something wrong with my code?
Here is my code:
<head>
<title>New Block Page</title>
<script src="jquery.ui-1.5b4/jquery-1.2.4b.js"></script>
<script src="jquery.ui-1.5b4/ui.core.js"></script>
<script src="jquery.ui-1.5b4/ui.draggable.js"></script>
<script src="jquery.ui-1.5b4/ui.droppable.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".block").draggable({cancel: 'object,embed,:input,button',
helper: 'clone', containment: "#moduleArea"});
$(".drop").droppable({
accept: ".block",
activeClass: 'droppable-active',
hoverClass: 'droppable-hover',
drop: function(ev, ui) {
$(ui.draggable).appendTo($(this));
}
});
});
</script>
<style type="text/css">
object, embed
{
z-index: 1;
}
.block {
z-index: 100;
background-color: black;
color: white;
padding: 0.4em;
}
.drop {
opacity: 0.7;
}
.droppable-active {
opacity: 1.0;
}
.droppable-hover {
outline: 1px dotted black;
}
</style>
<link rel="stylesheet" href="blueprint/screen.css" type="text/css"
media="screen, projection">
<link rel="stylesheet" href="blueprint/print.css" type="text/css"
media="print">
<!--[if IE]><link rel="stylesheet" href="css/blueprint/ie.css"
type="text/css" media="screen, projection"><![endif]-->
</head>
<body>
<div class="container">
<div class="span-24">
Header
</div>
<div id="moduleArea" class="span-24">
<div class="drop span-4">
Left sidebar
<div class="block" id="mod1">
<object width="100" height="100"><param name="allowScriptAccess"
value="true"></param><param name="movie" value="http://www.youtube.com/
v/fvKhDiNME4E&hl=en"></param><param name="wmode" value="transparent"></
param><embed src="http://www.youtube.com/v/fvKhDiNME4E&hl=en"
type="application/x-shockwave-flash" wmode="transparent" width="100"
height="100" allowScriptAccess="true"></embed></object>
</div>
</div>
<div class="drop span-16">
Main content
</div>
<div class="drop span-4 last">
Right sidebar
<div class="block" id="mod2">
This is a block.
</div>
</div>
</div>
</div>
</body>