previous page button of browser opening on-rev server page

paolo mazza mazzapaolo at libero.it
Wed Jul 27 06:59:30 EDT 2011


Thank you  Dave. I found out that Safary needs an additional attribute
in the body tag :  <body onunload=""> to reload the page.

So, here it is the  code   working for Firefox,  Safari and  IE, both
with PHP and LiveCode server.


PHP

<?php
header("Cache-Control: no-cache, no-store,  must-revalidate");
header("Expires: Fri, 30 oct 1998 14:18:41 GMT");
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento senza titolo</title>
</head>
<body onunload="">
<?php echo date("Y:m:d-H:i:s"); ?>
</body>
</html>


LIVECODE

<?rev
	put header "Cache-Control: no-cache, no-store,  must-revalidate"
	put header "Expires: Fri, 30 oct 1998 14:18:41 GMT"
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento senza titolo</title>
</head>
<body onunload="">
<?rev
	put the long time
?>
</body>
</html>

All the best. Paolo Mazza




More information about the use-livecode mailing list