automatic local link

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

automatic local link

NeroNono
Hi all,

how to do a automatic (when a page is opened) local redirect inside a page?

WASession redirectTo: does not work.

Many thanks and greetings!
Eduard


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: automatic local link

Intrader Intrader
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
Reply | Threaded
Open this post in threaded view
|

AW: [Seaside] Re: automatic local link

NeroNono
sorry, I don´t understand. Do you have an example?
Greetings
Eduard

--- Fritz Schenk <[hidden email]> schrieb am Sa, 26.2.2011:

Von: Fritz Schenk <[hidden email]>
Betreff: [Seaside] Re: automatic local link
An: [hidden email]
Datum: Samstag, 26. Februar, 2011 21:47 Uhr

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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: AW: Re: automatic local link

Intrader Intrader
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
Reply | Threaded
Open this post in threaded view
|

Re: AW: Re: automatic local link

Boris Popov, DeepCove Labs (SNN)
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
Reply | Threaded
Open this post in threaded view
|

Re: AW: Re: automatic local link

Intrader Intrader
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
Reply | Threaded
Open this post in threaded view
|

AW: [Seaside] Re: AW: Re: automatic local link

NeroNono
I´m afraid you got me wrong.

Lets say we have got a very huge page and when the page is rendered an element at the bottom of the page should get the focus.
How to do that?

Thanks!
Eduard


--- Fritz Schenk <[hidden email]> schrieb am Fr, 4.3.2011:

Von: Fritz Schenk <[hidden email]>
Betreff: [Seaside] Re: AW: Re: automatic local link
An: [hidden email]
Datum: Freitag, 4. März, 2011 04:54 Uhr

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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: AW: [Seaside] Re: AW: Re: automatic local link

Robert Sirois
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]

I´m afraid you got me wrong.

Lets say we have got a very huge page and when the page is rendered an element at the bottom of the page should get the focus.
How to do that?

Thanks!
Eduard


--- Fritz Schenk <[hidden email]> schrieb am Fr, 4.3.2011:

Von: Fritz Schenk <[hidden email]>
Betreff: [Seaside] Re: AW: Re: automatic local link
An: [hidden email]
Datum: Freitag, 4. März, 2011 04:54 Uhr

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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________ 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
Reply | Threaded
Open this post in threaded view
|

Re: AW: Re: automatic local link

Ivan, Liliana
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
Sent: 12 March 2011 21:45
To: Seaside - general discussion
Subject: AW: [Seaside] Re: AW: Re: automatic local link

 

I´m afraid you got me wrong.

Lets say we have got a very huge page and when the page is rendered an element at the bottom of the page should get the focus.
How to do that?

Thanks!
Eduard


--- Fritz Schenk <[hidden email]> schrieb am Fr, 4.3.2011:


Von: Fritz Schenk <[hidden email]>
Betreff: [Seaside] Re: AW: Re: automatic local link
An: [hidden email]
Datum: Freitag, 4. März, 2011 04:54 Uhr

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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 


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