I have one page which shows results/calculation of previous input. on the bottom of this page is option to print the page using the window.print() function. it does print the page but then gives an error message (see below) - it looks like it wants to recalculate the results but it doesn't have all input data this fails. any idea how to fix this problem, please?
code:
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>
...
...
...
<a href="" onclick="printpage()" >Print this page</a>
error:
Warning: Division by zero in /webcalc_output.php on line 144
Warning: Division by zero in /webcalc_output.php on line 151
Use BACK button and correct your total length.
code:
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>
...
...
...
<a href="" onclick="printpage()" >Print this page</a>
error:
Warning: Division by zero in /webcalc_output.php on line 144
Warning: Division by zero in /webcalc_output.php on line 151
Use BACK button and correct your total length.