Code: Select all
A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
Code: Select all
<p:dialog widgetVar="dlg" showEffect="fade" modal="true" header="#{msgs.graph}" resizable="true">
<p:outputPanel id="output" layout="block" style="width:1000px;height:500px"/>
</p:dialog>
<script type="text/javascript">
function exportChart() {
//export image
$('#output').empty().append(PF('chart').exportAsImage());
//show the dialog
PF('dlg').show();
}
</script>
What am I missing?
Regards,
BTJ