pvdspek / jquery.autoellipsis

Auto-ellipsis plugin for jQuery
http://pvdspek.github.com/jquery.autoellipsis
MIT License
142 stars 32 forks source link

IE7 Crashes when running .ellipsis() in a ajax on complete function #8

Open gardelea opened 12 years ago

gardelea commented 12 years ago

More details to come, just wanted to get this issue started.

Basically i have an link that ajax's in javascript which updates a div's content with new html. This consistently seems to crash the IE7 browser process. This does not happen if you are running IE8 with developer tools set to render in IE7 Browser Mode and IE7 Standards Document Mode.

here is a snippet of the link click event :

$("#id_one .class_one a").live('click', function() { 
  $.get(this.href, 
    {}, 
    function() { $(".class_two h2").ellipsis(); },
    'script'
  ); 
  return false; 
});

The ajax response looks something like this :

$('#id_one .class_three').html(<escaped javascript to insert>);

I am using 1.0.2 of jquery.autoellipsis.

I've tried these version of jquery as well and all have the result :

I am going to work on isolating this scenario in a self contained file (or set of files) and report back.

thanks !