Netscape 7.0 Memory leak on binding of Div with innerHTML property

C

charlesjylee

I am working with Netscape 7.0 and need to bind a <div> with the
innerHTML property. More specifically, I need to bind a GridView in
the div in question. I am binding the div with some hardcoded data (a
table, which is the HTML equivalent of a GridView). Is there a way
with javascript to dump the memory used by a DOM object (the div that
I am binding with innerHTML)? When i just receive the variable in
javascript, it doesnt seem to leak. I have tried removing and adding
the div each time I bind to it, but it still leaks. Any help will be
greatly appreciated. Thanks in advance.

Here is the code:

<script>
function BindDiv()
{
document.getElementById("divGridView").innerHTML = ("/* A very long
HTML line representing a gridview */");
}
window.setInterval('BindDiv()', 500);
</script>

<div id="divGridView"></div>


Thanks,
Charles.
 
M

mbuenros

I am working with Netscape 7.0 and need to bind a <div> with the
innerHTML property. More specifically, I need to bind a GridView in
the div in question. I am binding the div with some hardcoded data (a
table, which is the HTML equivalent of a GridView). Is there a way
with javascript to dump the memory used by a DOM object (the div that
I am binding with innerHTML)? When i just receive the variable in
javascript, it doesnt seem to leak. I have tried removing and adding
the div each time I bind to it, but it still leaks. Any help will be
greatly appreciated. Thanks in advance.

Here is the code:

<script>
function BindDiv()
{
document.getElementById("divGridView").innerHTML = ("/* A very long
HTML line representing a gridview */");}

window.setInterval('BindDiv()', 500);
</script>

<div id="divGridView"></div>

Thanks,
Charles.

Just use Firefox and that'll solve all your problems ;)

Regards,

Mikey
 
C

charlesjylee

I am working with Netscape 7.0 and need to bind a <div> with the
innerHTML property. More specifically, I need to bind a GridView in
the div in question. I am binding the div with some hardcoded data (a
table, which is the HTML equivalent of a GridView). Is there a way
with javascript to dump the memory used by a DOM object (the div that
I am binding with innerHTML)? When i just receive the variable in
javascript, it doesnt seem to leak. I have tried removing and adding
the div each time I bind to it, but it still leaks. Any help will be
greatly appreciated. Thanks in advance.

Here is the code:

<script>
function BindDiv()
{
document.getElementById("divGridView").innerHTML = ("/* A very long
HTML line representing a gridview */");}

window.setInterval('BindDiv()', 500);
</script>

<div id="divGridView"></div>

Thanks,
Charles.

This problem also exists in Opera 9.10, and Mozilla 1.7.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,074
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top