In the previous versions of jQuery & jQuey-UI, one could trigger
dragging like so:
jQuery(document).ready(function() {
jQuery("#myDiv").mousedown(function(ev) {
target = jQuery(ev.target);
/* Various logic that sets the draggable variable to either
true or
false */
if (draggable) {
target.draggable({
helper: "clone",
stop: function()
{
jQuery(this).draggable("destroy");
}
}).trigger("mousedown.draggable", [ev]);
}
});
});
But it will not work, javascript reports the following error:
"event.originalEvent is undefined".
How can I fix this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---