Closed sm1990 closed 9 years ago
Hi,
I don't see the code where you are using with docxtemplater. Can you please add that?
Or maybe even better create a jsfiddle with your issue.
Best, Edgar
Hi,
Thanks for the quick respond. i'll try a jsfiddle.
My code is below.
$dates is the variable that i need to send to database.
Thanks,
Have you solved your issue since then ?
I guess you could write the $.post function just after the doc.download function.
Hi, I tried some methods. One seems to be working when inserting new row to the table. In updation it doesn't work. I'll try your method too. Thanks
Hi, Sorry for the late reply. I found a solution. I added an onchange event to the location where the "save to disk" button loads. Thanks
Ok great
I need to save the date a document was generated or downloaded in the database. I tried to capture a click event. I'm using the downloadify function to save the file.
My javascript code is below.
$(document).ready(function(){
if($("#downloadify").children().length==1){
$.post( "update.php", { dates:'<?php echo $dates; ?>', caseid:'<?php echo $caseid; ?>' }, function(data) { //alert(data); $('#dates').val(data); }); } });
Can you please explain how to do this.
Thanks,