dinbror / bpopup

bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
http://dinbror.dk/bPopup
427 stars 260 forks source link

Uncaught TypeError: Object [object Object] has no method 'bPopup' after first time #11

Closed itskawsar closed 11 years ago

itskawsar commented 11 years ago

I want to make a dynamic popup with url. For the first time pop up is working fine. But after closing the popup, pop up is not woking. I only get the message in console like "Uncaught TypeError: Object [object Object] has no method 'bPopup'"

Here is my code:

    jQuery('.entry-link-pop').bind('click', function(e) {
    var url = jQuery(this).attr('link');
           // Prevents the default action to be triggered. 
           // e.preventDefault();

           // Triggering bPopup when click event is fired
           jQuery('#element_to_pop_up').bPopup({loadUrl: url});
           // return false;
     });

Thanks in advance.

dinbror commented 11 years ago

Do you have a live example I can see?

dinbror commented 11 years ago

no response