[jQuery] dialog UI draggable

[jQuery] dialog UI draggable


Hello,
I'm having a problem, perhaps anyone can spot what the problem is.
For some reason, the following syntax does not
My concern is the <draggable> thingy. I want the dialog box be
draggable only within the browser's internal window borders.
This is how I understand it should work:
dBox.dialog({
modal: true,
draggable:true,
stack:true,
zIndex:1000
}).draggable({ containment: 'window' });
but it doesn't work for some reason.
anyone has got a thought about this?