Börni wrote:
Hello together,
i'm using jquery ui for drag and drop. First of all, all works great.
But if i'm adding new draggable elements (via ajax call), they are not
draggable.
The draggable initialization seems to work (the new elements got ui-
draggable class), but i can't drag them.

Any ideas?

This is because adding the draggable class is only a marker to so that when you call :

$(".drag").draggable();

you select the things you want to call draggable() on ... so its not adding the class that makes things draggable, its calling draggable() on them .. try calling

$('#theIdOfTheNewElelement').draggable();

just after you add the new element to the page and everything will be fine


Best regards,

--
Robin Szemeti

Redpoint Consulting Limited E: ro...@redpoint.org.uk T: +44 (0) 1299 405028 M: +44 (0) 7971 883371 CONFIDENTIALITY NOTICE The information contained in this e-mail is intended only for the
confidential use of the above named recipient. If you are not the
intended recipient or person responsible for delivering it to the
intended recipient, you have received thiscommunication in error and must not distribute or copy it. Please accept the sender's apologies, notify the sender immediately by return e-mail and delete this communication. Thank you.
-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to