Re: Solved -> Re: Create links to navigate back to last visited page

2008-09-12 Thread StanMoong
Solution can be found here: http://fat-tier.blogspot.com/2008/09/cancel-button-for-form.html On Sep 12, 6:08 am, integrator <[EMAIL PROTECTED]> wrote: > I am not satisfied with this solution. For instance when I edit an > item in the list and save the changes I want to go back to the list I > ha

Re: Solved -> Re: Create links to navigate back to last visited page

2008-09-12 Thread StanMoong
Hi, I had the same problem as you. I was not able to use javascript to redirect (using location.href), got error message about no access to the directory. The history.back() doesn't work too well for me because user could be trying to save but encounter validation error and after several times, de

Re: Solved -> Re: Create links to navigate back to last visited page

2008-09-11 Thread integrator
I am not satisfied with this solution. For instance when I edit an item in the list and save the changes I want to go back to the list I had before and not to e new list with a different ordering. Alse when I edit an item ,and I get an input error i can't go back to list with the javascript functi

Solved -> Re: Create links to navigate back to last visited page

2008-08-28 Thread draikin
Thank you all for posting solutions. I solved the problem with the JS solution from clemos. It works like I want and I will dare that some users of my applikation don't like JS. draikin On 25 Aug., 14:54, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > The Formhelper does NOT need JS :) > > As f

Re: Create links to navigate back to last visited page

2008-08-25 Thread Marcin Domanski
The Formhelper does NOT need JS :) As fot the OP problem - you can save the actual page to the the session. If there is a page in session - get the url, if its different then the actual - save the actual (you have the one for back in the var). It has drawbacks but its closest you can get. -- Mar

Re: Create links to navigate back to last visited page

2008-08-25 Thread David C. Zentgraf
I personally am really against any kind of Javascript in links, as it messes with my browsers ability to open links in new tabs/windows on my command. If you want to implement solution #2, attaching a referring URL to each and every link, you could extend/overload the HtmlHelper with som

Re: Create links to navigate back to last visited page

2008-08-25 Thread clemos
Hi draikin I think we can consider CakePHP actually "needs" Javascript. Of course you can use Cake to develop javascript-free apps, but lots of Cake features, for example some of the FormHelper functionnalities, actually require javascript... You could use a code that use both, like: controller:

Re: Create links to navigate back to last visited page

2008-08-22 Thread draikin
Hi clemos, thank you for your solution that I read also. But just like $this- >referer() doesn't work for all browsers javascript doesn't work for all users, as there are some users who don't like javascript. But if there is a need for javascript in cakephp apps anyway (i don't know if this is so

Re: Create links to navigate back to last visited page

2008-08-21 Thread clemos
Maybe I didn't understand your problem, but ... Why don't you give a try to my good old plain javascript solution ? go back The link above will get you back just like your "back" browser button would... You can even go back further with "window.history.go(-10)" (ten pages back) No Cake, No PHP, j

Re: Create links to navigate back to last visited page

2008-08-21 Thread draikin
Thank you for your response. Yes, thats what I'm looking for. But the problem is that $this->referer() seems not to work. So I will test the bread crumb feature from the HTML helper. draikin teknoid schrieb: > You are probably looking for something like $this->referer() > > Also there is a bread

Re: Create links to navigate back to last visited page

2008-08-21 Thread clemos
go back ? ++ Clément On Thu, Aug 21, 2008 at 4:35 PM, draikin <[EMAIL PROTECTED]> wrote: > > Hi, > > i'am searching for a solution for the following problem. I want to > have a link on the pages of my little cakePHP app to allow to go back > to the page where i come from. So as the back-butt

Re: Create links to navigate back to last visited page

2008-08-21 Thread teknoid
You are probably looking for something like $this->referer() Also there is a bread crumbs feature in the HTML helper, for something more robust. On Aug 21, 10:35 am, draikin <[EMAIL PROTECTED]> wrote: > Hi, > > i'am searching for a solution for the following problem. I want to > have a link on t

Create links to navigate back to last visited page

2008-08-21 Thread draikin
Hi, i'am searching for a solution for the following problem. I want to have a link on the pages of my little cakePHP app to allow to go back to the page where i come from. So as the back-button of the browser. For example: I search for a subset of my database entries and get a page with a table c