Hi,
i got a little problem with jQuery draggable and droppable functions.
At the beginning I have to say, that I only work with the normal
jQuery library not with the UI addon.
I'm using the following code:
$('#droppable').droppable({
tolerance : 'position',
drop: function(event, ui) {
var split = $(ui.draggable).attr('alt').split('#');
var var1 = split[0];
var var2 = split[1];
var var3 = split[2];
var random = Math.random();
$.get("angebot_picto_place_save_ajax.php", {
var1: var1,
var2: var2,
var3: var2
}, function(data) { /* Do nothing, just be happy it works*/ });
var dropped = ui.draggable.element;
$(dropped).clone().appendTo(this);
}
});
This code here is causing the mainproblem.
$(dropped).clone().appendTo(this);
It seems to be a problem with the clone() funktion.
So, the IE8 says:
http://img3.abload.de/img/bildschirmfoto2009-12-5c9f.png
and the Firefox says:
Fehler: uncaught exception: [Exception... "Node cannot be inserted at
the specified point in the hierarchy" code: "3" nsresult: "0x80530003
(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: "http://192.168.1.144/
test/jquery-1.3.2.js Line: 957"]
My second problem ist, that the draggable objects by dropping it going
to append to the droppable area by ".appendTo(this);". This disables
the ability to drag those objects again. I think, this problem is
causing by the other, but it would be fine if you also could help me
to fix that.
Many thanks in advance and I'm sorry for my english, I'm german. I
hope everything is unterstandable.
greetings
Fabian
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.