Re: $this-Html-link with javascript back()
Am Freitag, 25. Februar 2011 13:48:22 UTC+1 schrieb (unbekannt): i think its much better to add $this-set('referer',$this-referer()); to your beforeRender(); and $this-Html-link('back',$referer); to your view. one less reliance on js is a win in my book. Mike Karthauser or your solution as fallback combined with js: $this-Html-link('back', $referer, array('onclick' = 'history.back(); return false;')); this way the browser-history-cache will be used if js is available... -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
$this-Html-link with javascript back()
can't find out how to resolve: a href=javascript:history.back()go back/a with: $this-Html-link -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: $this-Html-link with javascript back()
can't find out how to resolve: a href=javascript:history.back()go back/a with: $this-Html-link you can do echo $this-Html-link('go back',javascript:history.back()); i think its much better to add $this-set('referer',$this-referer()); to your beforeRender(); and $this-Html-link('back',$referer); to your view. one less reliance on js is a win in my book. Mike Karthauser Managing Director - Brightstorm Ltd Email: mi...@brightstorm.co.uk Web: http://www.brightstorm.co.uk Tel: 07939 252144 (mobile) Fax: 0870 1320560 Address: 1 Brewery Court, North Street, Bristol, BS3 1JS -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: $this-Html-link with javascript back()
Or you can just do: a href=javascript:history.back()go back/a No need to use an HTML helper for a task its not needed for. On Feb 25, 4:48 am, mi...@brightstorm.co.uk wrote: can't find out how to resolve: a href=javascript:history.back()go back/a with: $this-Html-link you can do echo $this-Html-link('go back',javascript:history.back()); i think its much better to add $this-set('referer',$this-referer()); to your beforeRender(); and $this-Html-link('back',$referer); to your view. one less reliance on js is a win in my book. Mike Karthauser Managing Director - Brightstorm Ltd Email: mi...@brightstorm.co.uk Web:http://www.brightstorm.co.uk Tel: 07939 252144 (mobile) Fax: 0870 1320560 Address: 1 Brewery Court, North Street, Bristol, BS3 1JS -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php