So then I manually included the DragAndDrop.js. In my test page, I got
the error:
d.makePositioned is not defined (DragAndDrop.js line 499). I thought
perhaps mixing the packed version of MochiKit.js was causing some
problem, so I edited the MochiKit.js file's SUBMODULES to include
"DragAndDrop", and then re-packed the script. I still got the same
error.
Anyhow, either I'm missing something or perhaps the DragAndDrop.js
isn't quite ready on trunk yet.
Suggestions?
Thanks
Dennis
> I checked out the latest trunk this morning (Revision 1074). I noticed
> that the DragAndDrop.js is not being built into the packed version of
> MochiKit.js. Is there a reason for this or is just not being done?
Yes, D&D is still in developpement, so it's not put by default in the
packed version. Furthermore, due to its size, it may not be in the
packed version in the stable release.
> So then I manually included the DragAndDrop.js. In my test page, I got
> the error:
> d.makePositioned is not defined (DragAndDrop.js line 499).
You have to include New.js.
--
Thomas
Ah ha... that did it for me. I'm dragging things all over now.
Thanks
I'm definetly new to MochiKit, so pardon my ignorance if it comes out
in this post.
I am trying to play with the DragAndDrop and I was running into the
same issues as djmuhlestein. I included DragAndDrop.js by hand and then
New.js and now I'm getting:
Error: element has no properties
Source File: http://localhost/~rguzman/jsWin/MochiKit/New.js
Line: 32
I am using revision 1080 from the trunk.
--
Thomas
Alright, even if this is irrelevant now, this is what I had. It is
about as simple as one can make it, the relevant html is:
...
<script tpye="text/javascript" src="MochiKit/MochiKit.js">
<script tpye="text/javascript" src="MochiKit/DragAndDrop.js">
<script tpye="text/javascript" src="MochiKit/New.js">
<script type="text/javascript" src="dragTest.js">
...
<div class="draggable" id="1">
<p>Some stuff</p>
</div>
and dragTest.js:
connect(window, 'onload', function(){
new Draggable($('1') );
});
Got the same problem here...
I included New.js and it works.. :D
thnx all