views:

45

answers:

0

$.fn.colorbox({width:"40%", inline:true,href:"#somediv", opacity:"0.50",transition:"none", height:"490px"});

On #somediv above I have a button that once clicked executes the following code:

line#45 $.fn.colorbox({href:"http://www.facebook.com", width:"65%",height:"80%",iframe:true});

I see facebook.com however the overlay is grayed out.

I even tried using the following code instead of line#45 :

$(document).one('cbox_closed', function(){ setTimeout(function(){ $.fn.colorbox({href:"http://www.facebook.com", width:"65%",height:"80%", iframe:true});},2); });

Now all I see is a blank overlay. Any suggestion guys?