it is possible to make fancybox2 draggable?

I would like to know if it is possible to make fancybox draggable

I use this fancybox2 to open a new page to do something and when the user close the fancybox window it returns a value
this is the code:
<script type="text/javascript">
 var temporal;
   maxWidth : 800,   maxHeight   : 700,   fitToView   : false,
   width    : '70%', height      : '90%', autoSize : false,
   closeClick  : false,   openEffect  : 'fade',
   beforeClose : function()
&#9; if($('.fancybox-iframe').contents().find('#lautor').val() != "")
&#9; { 
&#9;   document.getElementById('titulo').value = $('.fancybox-iframe').contents().find('#ltitulo').val(); 
&#9;   document.getElementById('autor').value = $('.fancybox-iframe').contents().find('#lautor').val(); 
           document.getElementById('lista').value = 1;
&#9; }
&#9; else { document.getElementById('lista').value = 0; }                  &#9;

Open in new window

<a class="various fancybox.iframe" data-fancybox-type="iframe" style="text-decoration:none;" href="buscar.php">
               <input class="tabs" type="button" style="text-decoration:none;" value="Buscar"></a>

Open in new window

My code works without a problem, but yesterday I found this amazing pluging:

I tried to integrate to my code but it only works when I use a previouse version of Fancybox and this is a problem because "beforeclose function" only works for me in fancybox2

I found also that jquery ui has a jquery ui draggable but i cannot found any example about how to use it with fancybox

Thats way I was wondering if it is possible to make fancybox2 draggable

best regards
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

altariamx2003Author Commented:
altariamx2003Author Commented:
Why my question is neglected?
Have you tried this:

afterShow: function(){

Easydrag plugin:
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

altariamx2003Author Commented:
that didnt work
Are you using jQuery UI at all?
You mention it.
Don't know what beforeclose has to do with it?
Quick test seems work fine with jQuery UI

        afterShow: function () {

Open in new window

altariamx2003Author Commented:
do you have an example about how to to use it with iframe fancybox that calls a page?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
altariamx2003Author Commented:
your idea is great, I gonna used with the galleries that I display using fancybox 1.X

unfortunately it didnt works with fancybox 2.x, but anyway Im gonna used instead jquery ui dialog

thanks anyway
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.