Hello together,

I have observed a problem using jQuery's JSONP functionality and the
Internet Explorer 7. The following example can be used to let the
(virtual) memory size of the IE grow constantly until Windows refuse
to allocate any more memory. Running the example using Firefox 3 does
not show any conspicuities.

<html><head>
<script src="jquery-1.2.6.js"></script>
<script>
  $(document).ready(function() {
    setInterval(loadData, 1000);
  });
  function loadData() {
    $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?
tags=cat&tagmode=any&format=json&jsoncallback=?", function(data){
      // do nothing
    });
  };
</script>
</head><body></body></html>

I have tried to track down this issue using sIEve [0] and the
JavaScript Memory Leak Detector [1] but could not find the reason for
this behavior.

Any ideas how to use JSONP for regular reloads without confusing the
IE?

Thanks for your help, Jens


Versions used: Windows XP SP2 incl. latest patches, IE 7.0.5730.12CO,
Firefox 3.0 RC 1, jQuery 1.2.6

[0] http://home.wanadoo.nl/jsrosman/
[1] http://blogs.msdn.com/gpde/pages/javascript-memory-leak-detector.aspx

Reply via email to