IE warning pop-up

Posted by mgweb 
IE warning pop-up
September 09, 2009 09:16AM
Hi,
In IE 7 I get warning pop-up window Internet Explorer cannot open The Internet site...This is the link and code
<script type="text/javascript" src="js/jscharts.js"></script>

<div id="chart_container">
U?itavanje...
</div>

<script type="text/javascript">
	
	var myChart = new JSChart('chart_container', 'pie', '', '');
	myChart.setDataArray([['NKV', 208],['PKV', 79],['KV', 99],['SSS', 350],['VKV', 7],['VŠS', 42],['VSS', 100],['MR', 2]]);

	myChart.colorize(['#FF0033','#FF9966','#CCCC33','#FFFF00','#CC9933','#99CCCC','#00CC00','#00FFFF']);

	myChart.setSize(450, 350);
	myChart.setTitle('STRUKTURA ZAPOSLENIH');
	myChart.setTitleFontSize(12);
	myChart.setTitleColor('#A90329');
	myChart.setTextPaddingLeft(2);
	myChart.setPieValuesColor('#330000');
	myChart.setPieValuesFontSize(14);
	myChart.setPieRadius(120);
	myChart.setPieUnitsFontSize(14);
	myChart.setPiePosition(0, 0);
	
	myChart.draw();
	
</script>

Please help if you can.
Re: IE warning pop-up
September 09, 2009 01:26PM
IE8 throws an error too but with a much better explanation: "HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)". Try to put the Javascript code to the end of your HTML or better into a function that runs on window.onload, e.g.:
window.onload=function(){
var myChart = new JSChart('chart_container', 'pie', '', '');
.....
myChart.draw();
}

Sabin

--------------------
JS Charts - Created by Smartketer LLC
Re: IE warning pop-up
September 09, 2009 05:34PM
Great, it's working, thank you very much!thumbs up
Sorry, you do not have permission to post/reply in this forum.