Re: seaside Digest, Vol 83, Issue 25

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

Re: seaside Digest, Vol 83, Issue 25

Sebastia Van Lacke
Thanks Luckas, that works too.

aRoot javascript document: self example2Script

Sebastian Van Lacke

> Message: 6
> Date: Mon, 23 Nov 2009 22:12:41 +0100
> From: Lukas Renggli <[hidden email]>
> Subject: Re: [Seaside] Adding javascript without encoding
> To: Seaside - general discussion <[hidden email]>
> Message-ID:
> <[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I assume that you are in Seaside 2.8, because this problem seems to be
> fixed in Seaside 3.0?
>
>> Component >>updateRoot: aRoot
>>
>> super updateRoot: aRoot.
>> aRoot javascript add: self example2Script.
>
> You probably should use #document: instead of #add:
>
>  aRoot javascript document: self example2Script
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 23 Nov 2009 13:47:54 -0800
> From: Julian Fitzell <[hidden email]>
> Subject: Re: [Seaside] Using URL Parameters
> To: Seaside - general discussion <[hidden email]>
> Message-ID:
> <[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Sun, Nov 22, 2009 at 1:54 AM, Lukas Renggli <[hidden email]> wrote:
>>> to extract parameters from URL, you have to make your own
>>> WAApplication subclass, where override 'handleRequest: aRequest'.
>>> Something
>>> like this:
>>>
>>> handleRequest: aRequest
>>> | blogdate |
>>> blogdate := aRequest at: 'blogdate'.
>>> ^ super handleRequest: aRequest
>>
>> Subclassing WAApplication is discouraged and normally not necessary
>> (Seaside 2.6 and earlier required that). Simply override
>> #initialRequest: in your root component.
>>
>> Have a look at WABrowser and the other components that override
>> #initialRequest: and #updateRoot: to see some examples. This works
>> exactly the same in Seaside 2.8 and 3.0.
>
> His example included a session key in the URL. If that session key is
> valid, #initialRequest: would not be called since it is not the first
> request to the session. In Seaside 2.8 you can use "self session
> currentRequest"; in Seaside 3.0 "self requestContext request".
>
> Julian
>
>
> ------------------------------
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> End of seaside Digest, Vol 83, Issue 25
> ***************************************
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside