Memory leak while using jquery and ezpztool tip
Below is my code which refreshes every 10 seconds
<script>
function refreshMe() {
var divId = 'myDiv';
var url = 'url';
jQuery.post(url, function(data) {
if (document.getElementById(divId) != null) {
document.getElementById(divId).innerHTML = data;
}
jQuery(".liveAuthen-target").ezpz_tooltip({
contentPosition: 'rightStatic',
stayOnContent: true,
offset: 0
});
});
}
jQuery(document).ready(
function() {
if (interval == null){
interval = setInterval('refreshMe();',10000);
}
});
</script>
Data is of the form <table><tr><td>
<div class=\"liveAuthen-target-tooltipt\" id=\"liveAuthen-target-1000>
"tooltip text"</div> <div class=\"liveAuthen-content\" id=\"liveAuthen-content-1000>
"text"</div></td></tr></table>
What happens there is a memory leak of the divs with ids liveAuthen-target-1000 and liveAuthen-content-1000
Anythoughts on how to fix this ?
Thanks