...

View Full Version : div content disappearing on refresh in IE7



DrWily
01-28-2009, 07:09 PM
When I refresh the page in IE7 this div content is disappearing:



for(cnc=0; cnc<common_name.length; cnc++)
{
var comname = document.createTextNode(common_name[cnc].childNodes[0].nodeValue);
if(common_name.length>1 && cnc<common_name.length-1)
{
comname.appendData(', ');
divb.appendChild(comname);
}
else{ divb.appendChild(comname); }
}


The html section:


<div id="content">
<script type="text/javascript">
load_catalog("herb");
</script>
<div id="catalog">
</div>
</div>

DrWily
01-28-2009, 08:46 PM
Apparently IE needed the script to come after the div. Problem solved.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum