[Seaside] Re: AW: Re: automatic local link
Boris Popov, DeepCove Labs
boris at deepcovelabs.com
Wed Mar 2 17:13:57 UTC 2011
This is suboptimal, because agents w/o JavaScript will simply ignore the
redirect. Instead, try:
(html anchor)
callback: [self requestContext redirectTo: 'http://google.com'];
with: 'Go to google.com'.
Or,
initialRequest: aRequest
self googleIsBetter ifTrue: [^self requestContext redirectTo:
'http://google.com'].
Hope this helps,
-Boris
-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Fritz
Schenk
Sent: Wednesday, March 02, 2011 12:07 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Re: AW: Re: automatic local link
Eduard,
I included the method #script which I override to specify that
'window.location' be set to an url to whcih you want to redirect. The
redirection occurs at the client when the javascript code is executed at
the client.
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list