You need to wrap your draggables with a div like so:

   <div id="foo" style="display:none;">
        <ul>
           <li><div id="drag1">Drag Me 1</div></li>
       </ul>
   </div>

If this doesnt help, depending on the context of your drabbable-droppable,
you will need another extra div :)

   <div id="foo" style="display:none;">
        <ul>
           <li><div><div id="drag1">Drag Me 1</div></div></li>
       </ul>
   </div>

Felix.

On 1/3/07, jw <[EMAIL PROTECTED]> wrote:

I have tried to search the archives but can't find a definitive answer.
Can you use scriptaculous draggable inside a dialog module?

If so anyone have a working example of a using a scriptaculous draggable
inside of a Dialog module ?    I can get it to work withing a window, but
not a Dialog module?    All i need is a simple test case to work off of.

thanks,
-jw

here is my simple test case I am working with :

    <a href="#" onclick="foo()">Open</a>
    <div id="foo" style="display:none;">
         <ul>
            <li id="drag1">Drag Me 1</li>
            <li id="drag2">Drag Me 2</li>
        </ul>
    </div>
     <ul>
        <li id="drag3">Drag Me 3</li>
        <li id="drag4">Drag Me 4</li>
    </ul>

    <script type="text/javascript">
         new Draggable('drag1');
         new Draggable('drag2');
         new Draggable('drag3');
         new Draggable('drag4');

        function foo(){
        Dialog.confirm($('foo').innerHTML,
            {windowParameters: {className:"alphacube", width:700},
                okLabel: "Save",
                cancelLabel: "Cancel",
                ok:function(win){
                return false;}});
        }
    </script>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com





--
Felix
-------------------------
God put me on earth to accomplish a certain number of things.  Right now,
I'm so far behind, I will never die...
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to