This seems to be the place where all the answers are, and no solution
(or even suggestion) for almost two weeks?
Too bad. The suggestion Richard made (and I had already implemented)
will have to be enough then.
/Stefan
On 19 Mar, 09:55, CTek <stefan.bergfe...@ctek.se> wrote:
> Hi Richard
>
> Thank you for your answer, but the example you showed was exactly what
> I've accomplished myself.
> What's missing is that I want the original box (draggable) to move
> into the droppable, and leave an empty spot among the draggables.
> I also want that draggable to return to its original location whenever
> another draggable is dropped in the same droppable.
> Coming with this is also that I don't want to let the user drop the
> same draggable in two droppables.
>
> /Stefan
>
> On 18 Mar, 16:20, "Richard D. Worth" <rdwo...@gmail.com> wrote:
>
> > This should get you started:
>
> >http://jsbin.com/ixeca
>
> > - Richard
>
> > On Wed, Mar 18, 2009 at 7:38 AM, CTek <stefan.bergfe...@ctek.se> wrote:
>
> > > I'm having a headache because I'm trying to make an on-line test.
> > > The graphics department wanted to make it all flash, but I said jQuery
> > > would do the trick, so please help me prove them wrong.
>
> > > I have a question, with six options, represented as six draggables.
> > > I expect three answers, represented as three droppables.
>
> > > The user is supposed to drag three draggables into the three
> > > droppables, and then click a button to check answers.
>
> > > What I want is for the draggable to be placed in the middle of the
> > > droppable when dropped.
>
> > > I also want the draggable to return to its original position when (if)
> > > another draggable is dropped in the same droppable. It'd also be nice
> > > if I could drop the draggable outside the droppables and have it
> > > returned to its original position.
>
> > > I also need to know which draggables are currently dropped, so I can
> > > check if the answer is correct. That's not a problem yet, but I'm
> > > afraid it will be.
No comments:
Post a Comment