vendredi 8 juillet 2016

How to use current version of .live() with JQuery to Print?


The window.location won't load the page so I can print a custom form. This is from older code, so I wasn't sure if there is a better way with the newer version of Jquery to print. Does JQuery have a printer option in the newer version? I couldn't find anything on it. <script> $("#print_audit_form_button").live('click',function(){ var print_name = $("#print_name").val(); $("#print_name").val(""); var print_orient=$("#print_orient").val(); var download_option=$("#download_option").val(); window.location = ("print_audit.php?auditID="+auditID_print+"&action=print&print_name="+print_name+"&print_orient="+print_orient+"&download_option="+download_option+"&type=pdf"); }); </script> <input type="button" class="btn btn-default" id="print_audit_form_button" value="PDF"/>

Aucun commentaire:

Enregistrer un commentaire