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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
