Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    22
    Thanks
    2
    Thanked 0 Times in 0 Posts

    div content disappearing on refresh in IE7

    When I refresh the page in IE7 this div content is disappearing:

    Code:
    		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:
    Code:
    	<div id="content">
    		<script type="text/javascript">
    			load_catalog("herb");
    		</script>
    		<div id="catalog">
    		</div>
    	</div>

  • #2
    New Coder
    Join Date
    Jan 2009
    Posts
    22
    Thanks
    2
    Thanked 0 Times in 0 Posts

    solved

    Apparently IE needed the script to come after the div. Problem solved.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •