how about preventing event bubbling ? $(".mydraggable").click(function(e){ e.stopPropagation();});
On Mon, Oct 13, 2008 at 5:38 PM, MorningZ <[EMAIL PROTECTED]> wrote: > > Well, as mentioned above.... use the Sortable's event handlers (sort > start, end, etc) to wire/unwire on an "return false" to the > anchors... > > > > On Oct 13, 11:09 am, Adam <[EMAIL PROTECTED]> wrote: > > Actually, I am applying the sortable to an LI tag which contains the > > link, but if I sort and the mouse pointer is on top of the link, the > > link click event is still executed. > > > > On Oct 13, 10:09 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > > > > > He's not talking about clicking on the link to "activate it", but > clcking on > > > it to drag and sort it. > > > > > I will say that you might be better off applying the sortable to an LI > tag > > > which contains the link, rather than directly to the link itself. > > > > > Remember that a link isn't technically a list, but a group of li tags > are. > > > > > -----Original Message----- > > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] > On > > > > > Behalf Of MorningZ > > > Sent: Monday, October 13, 2008 9:04 AM > > > To: jQuery (English) > > > Subject: [jQuery] Re: sortable links > > > > > if you don't want the user to go anywhere when clicking on a link, then > why > > > use a link? > > > > > On Oct 13, 9:50 am, Adam <[EMAIL PROTECTED]> wrote: > > > > Using the jquery UI plugin, I have setup a list of links (anchors) to > > > > be sortable, but after I sort an item, the link is executed, and I am > > > > taken to the web page for that link. Is there a way to setup the > > > > Sortable plugin to prevent this from happening? >