I would like to launch fancybox from another function. I need this trigger after some ajax function get success.
Code Base
$.post('principals/search_post/'+value, function(data) {
**// I need to call fancybox here**
});
EDIT
I have a url like http://example.com/somepage. I need to open this in an iframe with fancybox after that ajax function.
do you mean