This topic is locked
[SOLVED]

 Phprunner - Print Page Script

5/26/2012 6:53:10 AM
PHPRunner General questions
R
rennets author

Hi Everyone,
I am using the latest Phprunner 6.1, I have created a new button on my record "view page" labelled "Print this page" with the hope of being able to "Print" a viewed record.
My "print current page" code is as follows:
<html>

<head>

<script type="text/javascript">

function printpage()

{

window.print();

}

</script>

</head>

<body>
<input type="button" value="Print this page" onclick="printpage()" />
</body>

</html>
This simply does not work and generates a browser script error. I note, I cannot find any technical info on the Phprunner site that relates to creating such a button for printing a currently viewed record.
Can anyone advise?
Thanks,
Brendan.