Custom confirm alert before download CSV

Custom confirm alert before download CSV

susiktasusikta Posts: 1Questions: 1Answers: 0

Hi,
I am using "fnClick" Callback function for downloading the CSV file while button has been clicked on. I have tried with this
"fnClick": function ( nButton, oConfig, oFlash ) {
oConfig.sPdfMessage = confirm('Ok');
oFlash.setFileName("MonNomDeFichier.csv");
}
But the problem is, after the confirm(clicked on 'OK' button) alert i'm not getting the save as popup. Also i would like to know is there any way, I can create a Custom confirm alert before download CSV file?

This discussion has been closed.