[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread ceir...@gmail.com
It would also seem to be an issue with nested divs. I'm working on redesigning the gallery to work with fewer divs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email

[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread ceir...@gmail.com
Got it. The images are preventing the box from dragging. Now I know there has to be some sort of solution to this because I know I've seen folks use this code with images. Any know how. Alas, I don't know javascript. On Feb 23, 12:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Okay, afte

[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread ceir...@gmail.com
Okay, after testing a whole bunch of things the code doesn't seem to work possibly because of: nested divs? images being included in the divs? I tried dumping all my css styles except for .draggable and it still doesn't work. Also I made a little red box that DOES work with this code: Test So I

[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread ceir...@gmail.com
BTW, I'm on a Mac using FF (Mac) 2.0 and Safari 2.0.4. I'm currently running on a virtual host. This code is not working on either Safari or FF for Mac. The divs are being generated by a PHP include(), but that shouldn't cause problems should it? On Feb 23, 10:23 am, "[EMAIL PROTECTED]" <[EMAIL

[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread ceir...@gmail.com
I have. I've checked to see if the files are loading and everything, and they are. I've also added everything from MochiKit to the page header, including DragAndDrop.js. Still nothing. As for the error: Error: dojo is not defined Source File: /__package__.js Line: 1 This could be the issue, but

[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread Matthew Kwiecien
It looks like everything should work properly. Have you tried including this line on your page yet? What errors do you get in the js console? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To pos

[mochikit] Re: Trouble with draggable.js

2007-02-23 Thread ceir...@gmail.com
Here's draggable.js: /* Drag: A Really Simple Drag Handler */ Drag = { _move: null, _down: null, start: function(e) { e.stop(); // We need to remember what we're dragging. Drag._target = e.target(); /* There's no cross-browser way t

[mochikit] Re: Trouble with draggable.js

2007-02-22 Thread Matthew Kwiecien
Unless I'm mis-remembering, you need to include DragAndDrop.js as it's not loaded by default. I'd need to see what's in draggable.js to say anything more. On 2/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I've been using the draggable demo .js on the site to try get a div on > a web