mixplate
2007-May-08 13:24 UTC
[Ferret-talk] acts as ferret javascript.back fails after a search result
hi, i use ferret in my application and when the user uses the search, i return some records. the user then clicks on a result to view details. on the details page, i have a javascript.history.back to return to the search result. however, i get the expired results page and the user has to refresh the browser. is there a simple way to solve this? thanks. -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-May-08 13:35 UTC
[Ferret-talk] acts as ferret javascript.back fails after a search result
On Tue, May 08, 2007 at 03:24:25PM +0200, mixplate wrote:> hi, > i use ferret in my application and when the user uses the search, i > return some records. the user then clicks on a result to view details. > on the details page, i have a javascript.history.back to return to the > search result. however, i get the expired results page and the user has > to refresh the browser. is there a simple way to solve this?Do not use history.back in your link but use link_to to link to your search action? -- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa