[jQuery] Re: how to differentiate between "click" and "dragend" events?

2009-02-12 Thread legofish
afterDrag = true; } > function clicked(){ >   if (afterDrag) { >     afterDrag = false; >     return; >   } > > } > > Another approach would be to cancel events in the dragged() function > somehow, but my knowledge of the event model doesn't extend that far > (can a mo

[jQuery] Re: how to differentiate between "click" and "dragend" events?

2009-02-11 Thread legofish
no takers? On Feb 11, 1:54 pm, legofish wrote: > Hi, > > I am using the "drag" plugin (http://blog.threedubmedia.com/2008/08/ > eventspecialdrag.html) to design some interactions for a UI element. > > The element foo, needs to respond to a click, as well as to a dra

[jQuery] how to differentiate between "click" and "dragend" events?

2009-02-11 Thread legofish
Hi, I am using the "drag" plugin (http://blog.threedubmedia.com/2008/08/ eventspecialdrag.html) to design some interactions for a UI element. The element foo, needs to respond to a click, as well as to a drag (different responses for each). The plugin gives you handy drag events to work with. S

[jQuery] Re: Implementing a Knob Control

2009-01-27 Thread legofish
thanks riyono On Jan 26, 9:51 pm, Andronicus Riyono wrote: > On Tue, Jan 27, 2009 at 8:10 AM, Ricardo Tomasi wrote: > > > > > I have to disagree. Precise circular motion is very hard with a mouse, > > specially because most computers have cursor acceleration enabled - > > it's impossible to draw

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread legofish
> To: jQuery (English) > > Subject: [jQuery] Re: Implementing a Knob Control > > > Canvas is probably  the most elegant way to go, especially given the > > type of knobs you want. My suggestion is to find a decent resolution > > image of the knob you want, then use jqu

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread legofish
age of the knob you want, then use jquery and canvas to move the > knob, and just keep track of the position. Be aware though, the mouse > isn't really well designed for a knob kind of motion. > > On Jan 26, 1:56 pm, legofish wrote: > > by the way by "this approach" I

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread legofish
by the way by "this approach" I meant the second example on that page. On Jan 26, 1:54 pm, legofish wrote: > James, yes I mean a rotary control. > Eric, here's a real-world example of what I'm trying to implement: > > http://www.niji.or.jp/home/k-nisi/sa-9900-h

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread legofish
to how a slider returns a value. Thanks again On Jan 26, 10:20 am, Eric Garside wrote: > Legofish, > > I've got a couple ideas which might get the job done, but they all > depend on what "style" of knob you want. Take a look around a google > image search, and se

[jQuery] Implementing a Knob Control

2009-01-26 Thread legofish
Hi, I need to implement a knob control for one of my projects (eg. a volume knob). Ideally I would like to use jquery. I have spent some time searching for any resources to get started. Not only I can't find anything in jquery, I can't find anything even resembling a knob implementation in javascr

[jQuery] Re: using setTimeout to apply fade-in effect to multiple divs in sequence

2009-01-13 Thread legofish
with it: > > $("#container :first-child").asyncEach(function(){ >   $(this).fadeIn('slow'); > > }, 500); > > No global variables, can be reused onmultipleelements, you can stop > it, add custom easing and there's a `complete` callback function too! >

[jQuery] Re: using setTimeout to apply fade-in effect to multiple divs in sequence

2009-01-13 Thread legofish
i++).fadeOut(); >    if(i<=length) >      setTimeout(arguments.callee, delay); >    //arguments.callee is a reference to the current function > > } > > fade(500); > > On Jan 10, 3:05 am, legofish wrote: > > > Hi, > > > I have 20 divs all with the cl

[jQuery] using setTimeout to apply fade-in effect to multiple divs in sequence

2009-01-10 Thread legofish
Hi, I have 20 divs all with the class ".box" on my page. I want to apply the fadeIn() effect to all of them. I dont want them to all fade in at the same time. I want them to fade-in one by one, with a slight time offset. I dont want to use callback functions, because I dont want to wait until the