views:

255

answers:

2

Using resize() function, we can resize ajax content of colorbox. But how to resize width and height of colorbox having iframe content? can it be possible to set new height and width of colobox?

I found solution from this url - http://groups.google.com/group/colorbox/browse_thread/thread/fadc3d68ca764de3/c38fa24136a6abd7?pli=1

but stop with another issue, onComplete event called before iframe content load completely. I have tried with setTimeout function to put some waiting for content to load. But it's not concrete solution as network speed vary to get response.

A: 

$("yourelement").colorbox({iframe:true, innerWidth:600, innerHeight:400});

Kai
A: 

From v1.3.8, you can set width, height, innerWidth and innerHeight of colorbox using resize() method.

Mayur bhalgama