I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed inside of the thickbox.
<a href="?page=blahblah&TB_iframe=true&width=600&height=550" class="thickbox">Click</a>
class myAdmin {
public function __construct() {
}
public function myfunction() {
echo '<div class="css_class">The content of my thickbox</div>';
}
}
Below, an example of what’s needed to use ThickBox.
tb_show
parameters:iframe=true
I think this will give you an idea how to use the ThickBox. If you face any problem, let me know.