Hi Andy,
1) That's true, because it's just the clone of the draggable, it itself
isn't draggable. If you want the clone to be draggable as well,
simply insert a stop callback, like so: stop: function(event, ui) {
ui.helper.draggable(); }, which makes the helper itself draggable
after dragging (give it some options, i.e. stack as well).
2) That shouldn't be happening - a quick look at the test page showed me
that the old version is still in use there - could you update
it with the SVN version to give me a look?
Thanks,
Paul
On Thu, Nov 27, 2008 at 11:32 PM, Andy <[EMAIL PROTECTED]> wrote:
>
> ...the stack and keepHelper options work great, apart from a couple of
> points: 1) the words dragged onto the blackboard are no longer
> draggable, and 2) the updated ui.draggable.js still has the (probably
> unrelated?) old problem of the "cursor jump" when the page is scrolled
> and an item is dragged. If there is no quick fix its not a big deal -
> I'm grateful that I now know that what I want to do is possible and I
> learned plenty by reading through the js code.
>
> KR,
>
> Andy
>
> On Nov 27, 10:50 am, Andy <[EMAIL PROTECTED]> wrote:
> > Many thanks Paul, I will do that tonight, after I finish my day
> > job :-/ !
> >
> > Magic is indeed the word!
> >
> > KR,
> >
> > Andy
> >
> > On Nov 27, 10:15 am, "Paul Bakaus" <[EMAIL PROTECTED]> wrote:
> >
> > > On Thu, Nov 27, 2008 at 12:48 AM, Andy <[EMAIL PROTECTED]> wrote:
> >
> > > > Hello all,
> >
> > > > I have a web page with a number of draggable words which can be
> > > > dragged onto a blackboard to make sentences (please see:
> > > >http://northbaddesley-inf.hants.sch.uk/nbis/curriculum/wordboard2.php
> > > > ). All is going well up to this point but now I have run into 2
> > > > stumbling blocks, perhaps due to me misunderstanding the syntax:
> >
> > > > 1) Depending on the their position in the original word list under
> the
> > > > blackboard, dragged words may appear under words which are already
> > > > dragged - I would prefer the most recent dragged word to appear over
> > > > other words. I think that the draggable "stack" option should allow
> > > > the required behaviour but I can't seem to get it to work.
> >
> > > That's right - I tried it on your demo page, and it actually works.
> > > Simply do this:
> >
> > > $(".word").draggable({ containment:"#maincol", stack: { group: '.word',
> min:
> > > 1 } });
> >
> > > > 2) I want a word to be draggable from the word list more than once -
> > > > at the moment a word can only be dragged once to the blackboard. I am
> > > > guessing that I need to use the helper 'clone' option here along with
> > > > the appendTo option???
> >
> > > You have to use the helper 'clone' option, but the appendTo option
> won't
> > > help you.
> > > If helper: 'clone" is activated, the helper is usually removed after
> you
> > > drag,
> > > so you have to do a little more magic here:
> >
> > > 1) In the current jQuery UI version, you have to use the 'stop'
> callback,
> > > and in that callback,
> > > clone the helper (from ui.helper) once more, and append it using
> the
> > > right position (ui.position).
> >
> > > 2) However, due to the popular demand, I've added a new convienient
> method
> > > to the newest
> > > revision in the SVN trunk> Here, you can simply use the option
> > > 'keepHelper' and set it to true,
> > > and that's all you want.
> >
> > > > Any help with 1) and/or 2) greatly appreciated...
> >
> > > > KR & TIA,
> >
> > > > Andy
> >
> > > --
> > > Paul Bakaus
> > > UI Architect
> > > --http://paulbakaus.comhttp://www.linkedin.com/in/paulbakaus
> >
>
--
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---