Re: previous page button of browser opening on-rev server page

2011-07-27 Thread paolo mazza
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);

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread paolo mazza
Thank you all. Trying to get rid of the browser cache setting the proper headings (as Shao Sean suggested) , I came up with these 2 solutions: PHP: ?php header(Cache-Control: no-cache, must-revalidate); header(Expires: Fri, 30 oct 1998 14:18:41 GMT); ? ?php $dateTime = date(Y:m:d-H:i:s);

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread Jan Schenkel
To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: previous page button of browser opening on-rev server page Thank you all. Trying to get rid of the browser cache setting the proper headings (as Shao Sean suggested) , I came up with these 2 solutions: PHP: ?php header(Cache

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread Dave Cragg
On 26 Jul 2011, at 07:40, paolo mazza wrote: Thank you all. Trying to get rid of the browser cache setting the proper headings (as Shao Sean suggested) , I came up with these 2 solutions: PHP: ?php header(Cache-Control: no-cache, must-revalidate); header(Expires: Fri, 30 oct 1998

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread paolo mazza
Thank you all. So, there is a property ( header ) only for the on-rev server environment? In fact I can not use this property in the IDE (I get a compilation error) and it does not exists in the LC documentation (version 4.6.0). Are there other undocumented properties suitable only to the

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread Dave Cragg
On 26 Jul 2011, at 14:54, paolo mazza wrote: Actually the script suggested by Jan works, and I get a page with 2 new headers. However, for some reasons, the browser do not reload the page. Dave, you are right, I was unfair with PHP... still, at least put the long date is pretty elegant.

Re: previous page button of browser opening on-rev server page

2011-07-25 Thread paolo mazza
Hi Mark, when I go back with then previous page button of the browser, the cgi does not run again. The browser simply return the HTML recorded in the browser cache. I tried with Safary and with Firefox; both of them do the same thing. However, if I empty the cache before returning to the

Re: previous page button of browser opening on-rev server page

2011-07-25 Thread Shao Sean
Jump down to example two and just do that in your .irev page http://php.net/manual/en/function.header.php ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: previous page button of browser opening on-rev server page

2011-07-25 Thread Mark Schonewille
I see, Paolo, I misunderstood your questions. As always, do what Shao Sean says ;-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 What does that error mean? Buy

Re: previous page button of browser opening on-rev server page

2011-07-25 Thread paolo mazza
Thank you all. Trying to get rid of the browser cache setting the proper headings (as Shao Sean suggested) , I came up with these 2 solutions: FIRST ONE WITH PHP ?php header(Cache-Control: no-cache, must-revalidate); header(Expires: Fri, 30 oct 1998 14:18:41 GMT); ? ?php $dateTime =