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;
 $(document).ready(function() 
 {&#9; 
$(".various").fancybox(
  {
   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;
   }
  });
 });
</script>

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: http://jquery.diaz-cornen.com/fancybox/index_dragfancybox.html

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
altariamx2003Asked:
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:
anyone?
0
altariamx2003Author Commented:
Why my question is neglected?
0
lenamtlCommented:
Have you tried this:

afterShow: function(){
        $("div.fancybox-wrap").easydrag();

Easydrag plugin: http://www.gildasp.fr/exp/easydrag/
0
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
0
GaryCommented:
Are you using jQuery UI at all?
You mention it.
Don't know what beforeclose has to do with it?
0
GaryCommented:
Quick test seems work fine with jQuery UI

http://jsfiddle.net/GaryC123/M9KAm/19/

    $('.fancybox').fancybox({
        afterShow: function () {
            $(".fancybox-wrap").draggable();
        }
    });

Open in new window

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

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
0
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
AJAX

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.