Note that there are some explanatory texts on larger screens.

plurals
  1. POColorbox working for the first time .. but not the second time .. I get a.removeEventListener is not a function
    primarykey
    data
    text
    <p>Ok , so i am using colorbox to pop up windows of dynamic data generated by PHP .. Below is my php code ... when I click on the link , the windows pop up with the data .... but if I click on the same link again , the window doesn't get the information and I get this in the console <code>a.removeEventListener is not a function</code> , for the second time on clicking on the link for the colorbox to show .. 1st time works .. what could be going wrong ?</p> <pre><code>jQuery(document).ready(function() { var id_form; var url; $("a.madcomment").click(function(e) { e.preventDefault(); id_form = $(this).attr('id'); url ="#madcomment_menu"+id_form; $("a.madcomment").colorbox({inline:true, width:"350px", href:url}); }); }); &lt;?php $select = "SELECT * FROM COMMENTS INNER JOIN Twitter_Data ON Twitter_Data.screen_name=Comments.Twitter WHERE Category ='Comments'"; $result = mysql_query($select); $result_count = mysql_num_rows($result); echo " &lt;table border =\"0\"&gt;"; echo "&lt;tr&gt;"; $user_array = array(); $counter = 0; if($result_count &gt; 0) { while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "&lt;div id ='scoring_scale' class='madscore".$row['ID']."' style='display:none;'&gt;"; echo "&lt;div id='madcomment_menu".$row['ID']."' style='padding:10px; background:#fff;'&gt;"; echo "&lt;a id='".$row['ID']."' class='green_circle' href='#'&gt; +3 &lt;/a&gt;"; echo "&lt;a id='".$row['ID']."' class='orange_circle' href='#'&gt; +1 &lt;/a&gt;"; echo "&lt;a id='".$row['ID']."' class='red_circle' href='#'&gt; -1 &lt;/a&gt;"; echo "&lt;a id='".$row['ID']."' class='brown_circle' href='#'&gt; -3 &lt;/a&gt;&lt;br /&gt;"; echo"&lt;form&gt;"; echo "&lt;textarea id='text".$row['ID']."'rows='5' cols='33'&gt;"; echo "-"; echo "&lt;/textarea&gt;"; echo"&lt;button id='button".$row['ID']."'class='button_madscore'&gt; MadComment &lt;/button&gt;"; echo "&lt;/form&gt;"; echo "&lt;/div&gt;"; echo "&lt;/div&gt;"; } } // Here is the link that will generate the COLORBOX pop-up echo "&lt;a id='".$row['ID']."'class=' madcomment' href='madcomment_menu".$row['ID']."'&gt;&lt;img src='images/madcomment.png' /&gt; &lt;/a&gt;"; ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload