title: Error: "Too much recursion"
body: <p>Firebug shows me the following error: <code>too much recursion</code> , I tried a lot to determine what causes me this error, but in vain </p>
  
  <p>This is my JavaScript code: </p>
  
  <pre><code>$(".scan").click(function(e){
      e.preventDefault();
      var docName = $("#nomPJ").val();
      $(this).attr("nomDoc",docName);
  });
  </code></pre>
  
  <p>Another on a separated js file: </p>
  
  <pre><code>$(".scan").live("click",function(event){
      alert("frame");
      var e = event.target;
      nomDoc = $(e).attr("nomDoc");
      idDoc = $(e).attr("idDoc");
      alert("id"+idDoc);
      $("#title").text(nomDoc);
      $("#modal-body").empty().append('&lt;iframe frameBorder="0"  height="90%" width="98%" style="margin-left: 5px"  src="/GRH/Scan.jsp?nomDoc=' + nomDoc + '&amp;idDoc='+idDoc+'"&gt;&lt;/iframe&gt;');
      $("#myModal").modal({ dynamic: true });
  });
  </code></pre>
  
  <p>The html element:</p>
  
  <pre><code>&lt;a href="" class="scan" idDoc="1" nomDoc="" target="_blanck"&gt;numériser&lt;/a&gt;
  </code></pre>
  
  <p>I removed to first code, but the problem still remains.</p>