So I have a small iframe with a bar graph, and I would like so that when I click the graph, it opens up a colorbox (with a more detailed graph) from the "PARENT" of that iframe...
Basically I can get the iframe to open a colorbox, but it's tiny, I need it to be as big as the parent window.
How do I achieve this? Full code please... I am new to this. Here is how far I am through now:
Parent code:
$(document).ready(function(){
function call_colorBox(params) {
$.colorbox(params);
}
})
iframe code:
<a onclick="parent.call_colorBox({ width: '80%', height: '80%', iframe: true, href:'dash6detail2.0xpay.php' });" href="#"><div id="chartContainer" style="max-width:440px;height: 250px;"></div></a>
But nothing seems to happen? What am I missing?