OMMPAVAN Report post Posted March 17, 2012 Hai below is my .ZUL file .If i am loading this page in IFRAME when i click on button i am getting button .but if am accessing this page directly means not throw IFRAME graph is not loaing .is there any relation BT IFRAME and flash objects -----------------------My Controllr------------------------------------------ Cntroller.... iframe=new Iframe("/TestChart.zul"); iframe.setHeight("100%"); iframe.setWidth("100%"); this.graphDiv=new Div(); this.graphDiv.setHeight("50%"); this.graphDiv.appendChild(iframe); ----------------------------------------------------FusionChartTest.ZUL-------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?> <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?> <zk xmlns:w="http://www.zkoss.org/2005/zk/client" xmlns="http://www.zkoss.org/2005/zul"'>http://www.zkoss.org/2005/zul" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd"> <window height="400px" width="100%"> <script type="text/javascript" src="FusionCharts.js" /> <script type="text/javascript"> <![CDATA[ function renderChart(){ var newdiv = document.createElement('div'); var divIdName = 'testDiv'; newdiv.setAttribute('id',divIdName); newdiv.style.width = "60%"; newdiv.style.height = "300px"; document.getElementById('tstDiv').appendChild(newdiv); alert("Hai"); var strXml=new String("<chart caption='Finance Vs Amounts' subCaption='FinanceAmount =1000000.0' pieRadius='90' formatNumberScale='0' enableRotation='1' ><set label='DownPayment' value='100000.0' /> <set label='Capitalized' value='0.0' /> <set label='ScheduleProfit' value='94548.54' /> <set label='SchedulePrincipal' value='900000.0' /></chart>"); alert(strXml); var chart1 = new FusionCharts("Pie3D.swf", "TestChart","100%","100%","0", "0"); chart1.setDataXML(strXml); chart1.render("testDiv"); } ]]> </script> <h:div id="tstDiv" align='center'> <button label="Say Hello" w:onClick="renderChart();" /> </h:div> </window> </zk> Share this post Link to post Share on other sites
Guest Sumedh Report post Posted March 19, 2012 Hi, What type of error code is generated, when button is clicked? Can you send us the error code or error message which has occurred? Also, specify the width in pixels. Awaiting your response. Share this post Link to post Share on other sites