Closing a Dialog Box, Opening a New One and it is Grayed out (Colorbox)

Posted by Scott Faisal on Stack Overflow See other posts from Stack Overflow or by Scott Faisal
Published on 2010-05-14T05:38:00Z Indexed on 2010/05/14 5:44 UTC
Read the original article Hit count: 309

Filed under:
|
|

$.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?

© Stack Overflow or respective owner

Related posts about colorbox

Related posts about JavaScript