Hi All,
The problem is a curious one.
This works…
<a href=’javascript: print()’> (take the space out… leaving it in causes substitution with this stupid :p)
This doesn’t…
<script language=’javascript’>
print();
</script>
</body>
I’m trying to get a point of sale system to print the receipt, but first it has to send the shopping cart to a php script to record the transaction and then return the transaction number (which is then included on the receipt).
If the user clicks the link that contains the print function, it will print, but it hasn’t sent the data to php to perform the transaction update.
If the link instead sends the data to php, and then the target page calls print() at the end of the page load, it doesn’t work.
Any suggestions?
Thanks
CTB