HI,

I tried to implement some code that do the same as
Ajax.periodicalUpdater in Prototype, when I run it in the browser, it
works, but the memory used by the browser getting bigger and bigger,
so the browser will not respond anymore,

Here is my code

<script type="text/javascript" src="../jquery-1.3.2.min.js"></script>
<script>
function callMeOften()
{
     $.ajax({
                   method: 'get',
                   url : 'data/1.txt',
                   dataType : 'text',
                   success: function (text) { $('clockArea').html
(text); }
                });
var holdTheInterval = setInterval(callMeOften, 1000);
}
</script>
</head>
<body>
        <input type="button" value="Test" onclick="callMeOften();"/><br/> <br/
> <br/>
        <p><div id="clockArea"></div></p>
</body>
</html>


any help please.

Reply via email to