Displaying 4 results from an estimated 4 matches for "droparea".
2006 Feb 26
14
Question abour Draggables & Droppables
...original place.
Something like:
[CODE]
<!-- Draggable image -->
<img alt="Product" id="item" src="icon.png">
<script type="text/javascript"> new Draggable(item,{revert:true});</script>
<!-- Droppable Div -->
<div id="droparea" style="height:100px;width:100px;"><script type="text/javascript">//Droppable CartDroppables.add(''droparea'', {onDrop:function(element, dropon, event){ /* REVERT FALSE */ }});</script>[/CODE]
Thank you in advance!
__________________________...
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
...; [CODE]
> <!-- Draggable image -->
> <img alt="Product" id="item" src="icon.png">
> <script type="text/javascript"> new
> Draggable(item,{revert:true});</script>
>
> <!-- Droppable Div -->
> <div id="droparea" style="height:100px;width:100px;"><script
> type="text/javascript">//Droppable CartDroppables.add(''droparea'',
> {onDrop:function(element, dropon, event){ /* REVERT FALSE */
> }});</script>[/CODE]
>
> Thank you in advance!
>...
2008 May 29
4
Drag/Drop finding droppable's properties?
..."palette" and drop them onto a "form" to build
the design of our form.
To achieve this, when I have dragged the object, and dropped it onto
the "form" area, I want to get the position of where the object was
dropped.
I have a droppable area:
Droppables.add(''dropArea'', {onDrop:addItem});
And a method that calls a webservice via AJAX:
function addItem(element, dropon, event)
{
var s = element.id;
//
element.width,element.height,element.top,element.left,
AJAXDDtest.DBAccess.InsertField(s,element.innerHTML,0,0,0,0,
onGetD...
2005 Oct 14
0
droping element and effect "of comming from nowhere"
...ing wrong. Is it my fault or i don''t know maybe error in library. I''m using prototype 1.4.0 and scriptacuolo 1.5.rc.3
Here is sample of my code:
new Draggable(''element'', {
handle: ''subelemnt'',
revert:true
});
Droppables.add("droparea", {
onDrop: function(element)
{
//here si the code
TargetParent = Target.parentNode;...