开发者

IE7 and Scriptaculous Autocompleter running out of memory

开发者 https://www.devze.com 2022-12-15 01:44 出处:网络
In IE7 only, I\'m getting a weird out of memory error when I run my Autocompleter.Local. The content downloaded is around 1 MB in terms, but it\'s done in the background (in a JSON file).

In IE7 only, I'm getting a weird out of memory error when I run my Autocompleter.Local. The content downloaded is around 1 MB in terms, but it's done in the background (in a JSON file).

function create_listeners() {
 jQuery('.auto_complete_field').each(function() {
   var terms_id = 'terms_' + jQuery(this).attr('id');
   jQuery(this).after('<div class="auto_complete" id="' + terms_id + '"></div>');
//   jQuery(this).attr('value', 'test');
   new Autocompleter.Local(jQuery(this).attr('id'),terms_id, terms, {fullSearch:false, frequency:0, minChars:1});
 })
}

Anyone have any idea why this would affect IE 6/7 on开发者_StackOverflow中文版ly?


You might be able to use dynaTrace Ajax Edition to find the bottleneck.


It appears that IE7 has a 1 MB blob size limit on variables, and that's what we were running into here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号