Hello, I am trying to apply a draggable to an hyperlink <a id=''hyper'' href="XXX>blah</a> new Draggable(''hyper''); The problem is that once I drag my hyper link, it is triggered and the page is move dto the url indicated by the tag. Is there a way to disable that? I''d rather stay with my hyperlinks. Many thanks ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!''s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey, the question is: when does the hyperlink should actually be activated? If you never want to activate them, just put a "javascript:void(0);" as href-value, which deactivates the link. If you want it to be activated for example by a right-click or a key- combination (ouch!) you could build upon this. bye, Thomas On 16 Sep., 22:23, Jean-Christophe Roux <jc...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Hello, > I am trying to apply a draggable to an hyperlink > <a id=''hyper'' href="XXX>blah</a> > > new Draggable(''hyper''); > > The problem is that once I drag my hyper link, it is triggered and the page is move dto the url indicated by the tag. Is there a way to disable that? I''d rather stay with my hyperlinks. > Many thanks > > ____________________________________________________________________________________ > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!''s user panel and lay it on us.http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Either use a handle (instead of dragging the link directly) or observe the onEnd callback, which maps to the mouseup event--then Event.stop the event. TAG On Sep 16, 2007, at 2:23 PM, Jean-Christophe Roux wrote:> Hello, > I am trying to apply a draggable to an hyperlink > <a id=''hyper'' href="XXX>blah</a> > > new Draggable(''hyper''); > > The problem is that once I drag my hyper link, it is triggered and > the page is move dto the url indicated by the tag. Is there a way > to disable that? I''d rather stay with my hyperlinks. > Many thanks > > > Check out the hottest 2008 models today at Yahoo! Autos. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I am using an handler and it works fine. Thank you for the advice JCR ----- Original Message ---- From: Tom Gregory <tomg-PGZyUNKar/Q@public.gmane.org> To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sent: Monday, September 17, 2007 9:59:12 AM Subject: [Rails-spinoffs] Re: Draggable on <a> tag Either use a handle (instead of dragging the link directly) or observe the onEnd callback, which maps to the mouseup event--then Event.stop the event. TAG On Sep 16, 2007, at 2:23 PM, Jean-Christophe Roux wrote: Hello, I am trying to apply a draggable to an hyperlink <a id=''hyper'' href="XXX>blah</a> new Draggable(''hyper''); The problem is that once I drag my hyper link, it is triggered and the page is move dto the url indicated by the tag. Is there a way to disable that? I''d rather stay with my hyperlinks. Many thanks Check out the hottest 2008 models today at Yahoo! Autos. ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---