I am using bPopup to open a page in popup container. Now, there is a link in the popup page, i want to open the new page in the already opened bPopup container. Assigning a new page link in anchor tag opens the new page in parent window. I have also used following approach in popup page:
$('.icoNext').bind('click', function(e) {
e.preventDefault();
$('.popup').bPopup({
contentContainer:'.popup_content',
modalClose: false,
closeClass: 'closeFx',
loadUrl:'device_new_assignTag.htm'
});
});
where the $('.icoNext') is the link in popup page and $(.popup) is in parent page.
you could use the onclose function that is given on the website.
It does close the popup, but in the callback you can open a new popup.
http://dinbror.dk/bpopup/