_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Eduard, try clientside code in javascript
Override #script in your component and include script as for example script ^'window.location = "http://mysite.com.html";' _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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: [hidden email] [mailto:[hidden email]] On Behalf Of Fritz Schenk Sent: Wednesday, March 02, 2011 12:07 AM To: [hidden email] 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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Boris , thanks
As Boris says, if the client does not have javascript, it is difficult, but not impossible to cause a redirect. The method Boris suggest is a server side redirect which the original poster said it was not working for him. The form suggested by Boris, works. Thanks _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
WAFormInputTag instance #setFocus
RS
Date: Sat, 12 Mar 2011 19:45:10 +0000 From: [hidden email] Subject: AW: [Seaside] Re: AW: Re: automatic local link To: [hidden email]
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by NeroNono
You should not build "very huge" pages You can always review your design From: [hidden email] [mailto:[hidden email]] On Behalf Of Eduard Poschinger
This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |