Search code examples
jqueryasp.netdraggablefacebox

Make the facebox popuped page draggable, possible?


Im using the facebox method to popup a page. however is there a way to make this facebox draggable?.. I saw many articles about draggable contents, but how can i achieve it using facebox ?

$(document).ready(function () {
            $('a[rel*=facebox]').facebox().click(function () {
                lastVisited = this.href;
            });
        });

this is my code, is there a property to make it draggable? i tried draggable:true

Thanks all


Solution

  • oke here is the solution:

     <script type="text/javascript"> 
            $(document).bind('reveal.facebox', function(){ 
                $('#facebox').draggable(); 
            }) 
        </script> 
    

    NB: dont forget the jquery UI js file