I have a web page containing n pages of paged data, showing 20 records at a time. The front end has a link to another page that opens the same data, but without the paging and calls window.print
on document.ready
.
On my paged content view I have a link:
<a href="printallthisstuff.php" target="blank">Print all items</a>
In printallthisstuff.php I have:
$(document).ready(function(){
window.print();
});
printaallthisstuff.php can be a very large document, taking several seconds to load. What would be a better way of doing this?