In reference to another question I found : How can I dynamically resize the jQuery Colorbox plugin?
If I wanted to resize the colorbox inside of a callback, how would I call it? Also, would it be possible disable scrolling until the resize was complete, then enable it?
$("a[rel='colorbox']").colorbox({
onComplete: function() {
????.colorbox.resize(); // what in the world goes here to get the colorbox?
},
preloading: true
});
When you do this:
You’re saying “create me a colorbox object associated to this reference.”
So for you to access it’s properties (the object in other words) you just call the element:
I have no idea if there is a resize function in that plugin has i never used it, but you should be able to do it like this: