Is it possible to constrain a draggable YUI2 Conta开发者_开发知识库iner in a DIV instead of the whole page?
I know its possible using YUI3 Drag n Drop: http://developer.yahoo.com/yui/3/examples/dd/constrained-drag_clean.html
http://developer.yahoo.com/yui/examples/dragdrop/dd-region.html Here is a link to the example of drag and drop in a bounded region. It is part of the yui 2 drag and drop here http://developer.yahoo.com/yui/dragdrop/#using
精彩评论