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 : to reload the page. So, here it is the code working for Firefox, Safari and IE, both with PHP and LiveCode server. PHP Documento senza titolo LIVECODE Documento senza titolo A

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 e

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 se

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: > > 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 Jan Schenkel
LiveCode www.quartam.com = "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) - Original Message - From: paolo mazza To: How to use LiveCode Subject: Re: previous page button of browser opening on-rev server page Thank you all

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: PHP: LIVECODE  ... much easyer  ;-) HOWEVER, the first solution (PHP) sets the heathers properly but still when I move back and forth with

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 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Documento senza titolo THE SECON

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 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 preferen

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 previo

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

2011-07-25 Thread Mark Schonewille
Hi Paolo, You could set a cookie to true when the web form loads and to false when the cgi processes the web form. Whenever the cookie is false, the cgi should not be allowed to run. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-

previous page button of browser opening on-rev server page

2011-07-25 Thread paolo mazza
How can I prevent users from opening an .irev page clicking the "previous page button" of the browser ? I mean. I have a on-rev.com/xxx.irev page resulting from the LiveCode cgi process . If the user move forward from this page, I do not want the user be able to go back to the previous page reloa