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