Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script type="text/javascript" language="javascript">
       var initiateExport = false;

       function exportCharts(exportFormat) {
           initiateExport = true;
           for (var chartRef in FusionCharts.items) {  ///// This line not execute properly

               if (FusionCharts.items[chartRef].exportChart) {
                   document.getElementById("linkToExportedFile4").innerHTML = "";
                   document.getElementById("Div1").innerHTML = "";
                   FusionCharts.items[chartRef].exportChart({ "exportFormat": exportFormat });

               }
               else {

                   document.getElementById("linkToExportedFile4").innerHTML = "Please wait till the chart completes rendering...";
                   document.getElementById("Div1").innerHTML = "Please wait till the chart completes rendering...";

               }
           }
       }

       function FC_Exported(statusObj) {
           if (initiateExport) {
               initiateExport = false;
               document.getElementById('<%=txtstatone.ClientID%>').value = "";
           }

           if (statusObj.statusCode == "1") {

               document.getElementById('<%=txtstatone.ClientID%>').value += statusObj.fileName;

               document.getElementById("linkToExportedFile4").innerHTML += "Export successful. View it from <a target='_blank'  href='" + statusObj.fileName + "'>Here</a>.<br/>";

               document.getElementById("Div1").innerHTML += "Attched <a target='_blank' id='showclik' onclick='JavaScript:show()' href='" + statusObj.fileName + "'>PDF</a>.<br>";

           }
           else {
               document.getElementById("linkToExportedFile4").innerHTML += "Export unsuccessful. Notice from export handler :" + statusObj.notice + "<br/>";
               document.getElementById("Div1").innerHTML += "Export unsuccessful. Notice from export handler :" + statusObj.notice + "<br/>";

           }
       }

   </script>
Posted
Updated 7-Oct-13 2:11am
v2
Comments
Zafar Sultan 7-Oct-13 5:33am    
And the question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900