Re: back functionality

2007-09-04 Thread NOSLOW
One thing to note about history.go(-1); it that it will take you back a page in your browser's cache with no trip to server. Creating a link using either the session or referrer will re-send the page request to the server, and will get you a "fresh" copy of the page (meaning that if the data has c

Re: back functionality

2007-09-01 Thread Chris Hartjes
On 9/1/07, Geoff Ford <[EMAIL PROTECTED]> wrote: > > To get around the referer issue you can use javascript and have Chris' > method as a fallback. > > history.go(-1); Geoff, that's a good idea. Since I'm just getting into the swing of things with Javascript that never occurred to me. :) -- Ch

Re: back functionality

2007-09-01 Thread Geoff Ford
To get around the referer issue you can use javascript and have Chris' method as a fallback. history.go(-1); Geoff -- http://lemoncake.wordpress.com On Sep 1, 9:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Technically the referrer header is an optional part of the http spec, > so can

Re: back functionality

2007-09-01 Thread [EMAIL PROTECTED]
Technically the referrer header is an optional part of the http spec, so cannot always be relied upon (though most browsers do behave, you may get issues with odd proxies misbehaving). The only really reliable way to do this is to tag the previous page in your session (best in a beforeFilter / aft

Re: back functionality

2007-08-31 Thread Chris Hartjes
On 8/31/07, rtanz <[EMAIL PROTECTED]> wrote: > > hi i would like to make a back button on some pages, how can i know > the url of the previous page? thanks If you're in the controller, you can get the previous page via $this->referer(). I use it all the time to send people back to the page they

Re: back functionality

2007-08-31 Thread [EMAIL PROTECTED]
store the previous page in a session and use that to make the link, or use the javascript history object. On Sep 1, 12:26 am, rtanz <[EMAIL PROTECTED]> wrote: > hi i would like to make a back button on some pages, how can i know > the url of the previous page? thanks --~--~-~--~~--

back functionality

2007-08-31 Thread rtanz
hi i would like to make a back button on some pages, how can i know the url of the previous page? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph