bpopup

jQuery function .bind not working in IE

狂风中的少年 提交于 2019-12-22 08:34:50
问题 This is my website If you click on the little thumbnails a larger image displays. In Chrome it works perfectly, but when I try it in IE9 it just doesn't do anything. Here is my code: jQuery // JavaScript Document //Button1 ;(function($) { // DOM Ready $(function() { // Binding a click event // From jQuery v.1.7.0 use .on() instead of .bind() $('#my-button').bind('click', function(e) { // Prevents the default action to be triggered. e.preventDefault(); // Triggering bPopup when click event is

Not all of the content showing inside of the popup

余生长醉 提交于 2019-12-13 04:43:59
问题 I have a popup plugin. Whenever i click the link, the things inside element_to_pop_up DIV are written in the popup window. However i added a function which is not appearing in the popup, it is showed outside of it in the main page. Why does that happen? I guess that the dots make this function get echoed but they are out of the element to pop up DIV. How to get over it? function writecomments($photoid){ echo $photoid; } echo " <div class='element_to_pop_up'> ".writecomments($photoid)." <img