Drag and drop a link in IE7
Hi,
When I drag my link to my droppable area, an ajax request is supposed to triggred, but it seems like the whole page is beeing reloaded. This works fine with Chrome and Firefox. It works in IE if I have insert an alert in the drop function.
Does anyone have a workaround for this?
Im including the drop code I have:
- $('.droppable').droppable({
- drop: function(ev, ui) {
- var intSourceObjectType = ui.draggable.attr('objecttype');
- var intSourceObjectId = ui.draggable.attr('objectid');
- var intTargetObjectType = $(this).attr('objecttype');
- var intTargetObjectId = $(this).attr('objectid');
- var strAction = $(this).attr('action');
- if (strAction == "createlink") {
- CreateLink(intSourceObjectType, intSourceObjectId, intTargetObjectType, intTargetObjectId);
- }
- }
- });