javascript - Open new page in JQuery bPopup -


i using bpopup open page in popup container. now, there link in popup page, want open new page in opened bpopup container. assigning new page link in anchor tag opens new page in parent window. have 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 $('.iconext') link in popup page , $(.popup) in parent page.

you use onclose function given on website.

it close popup, in callback can open new popup.

  $('element_to_pop_up').bpopup({         onopen: function() { alert('onopen fired'); },          onclose: function() { alert('onclose fired'); }     },      function() {         alert('callback fired');     }); 

http://dinbror.dk/bpopup/


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -