title: JQuery error in IE, works with FF. Maybe a problem with live
body: <p>I have an ASP.net MVC2 application. In wich I'm using JQuery to alter all table rows so I can click anywhere in any row to trigger a click event on a link in the clicked row. </p>
  
  <p>The tables is created using MVC's built in partialview ajax.</p>
  
  <p>Here is my JQuery script.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
          $(document).ready(function () {
              $('table tr').live('click',function (event) {
                  $('#asplink', this).trigger('click');
              })
              .live('mouseenter',function (event) {
                  this.bgColor = 'lightblue';                    
              })
              .live('mouseleave', function (event) {
                  this.bgColor = 'white';
              });
  
          });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>And this is the first part of the partial view code that creates the table.</p>
  
  <pre><code>&lt;% foreach (var item in Model.JobHeaderData)
     { %&gt;
  
      &lt;tr&gt;
          &lt;td&gt;
              &lt;a id="asplink" href="http://localhost/sagstyring/EditJob.asp?JobDataID=&lt;%: item.JobDataId %&gt;&amp;JobNumId=&lt;%: item.JobNumID%&gt;&amp;JobNum=&lt;%: item.JobNumID%&gt;&amp;DepId=1&amp;User_Id=&lt;%:ViewData["UserId"]%&gt;" onclick="window.open(this.href,'Rediger sag &lt;%: item.JobNumID %&gt; ', 'status=0, toolbar=0, location=0, menubar=0, directories=0, resizeable=0, scrollbars=0, width=900, height=700'); return false;"&gt;Rediger&lt;/a&gt;                 
          &lt;/td&gt;
  </code></pre>
  
  <p>In firefox this works perfectly. In IE, JQuery crashes when I click on a row. </p>
  
  <p>If I debug the page in IE. I get this.</p>
  
  <pre><code>Out of stack space
  </code></pre>
  
  <p>In jquery-1.4.1.js line 1822</p>
  
  <pre><code> // Trigger the event, it is assumed that "handle" is a function
      var handle = jQuery.data( elem, "handle" );
      if ( handle ) {
          handle.apply( elem, data );
      }
  </code></pre>
  
  <p>I'm no eagle at javascript, so I'm pretty much stuck.          </p>
  
  <p>Edit: IE had a problem with spaces in my window.open function on the click event. Having fixed that, I can now see that the click event is actualy working, but it enters a Loop. I just keeps clicking on the link until I get the Out of stack space error. </p>
  
  <p>Any thoughts on this?</p>