[Seaside] Someone explain please the following syntax that appear as illustration of jQuery

Tony Fleig tony.fleig at gmail.com
Wed Dec 22 03:14:01 UTC 2010


Using Tools/Message Names, I found Script defined << like this:

<< anObject
	^ self add: anObject

I was confused by this too. I think its simply a synonym for Script>>#add:.

TF

On Tue, Dec 21, 2010 at 7:08 PM, Fritz Schenk <intrader at aol.com> wrote:
> <snip>
> "From ..javascript/jquery/ajaxanddommanipulation "
> JQAjaxFunctionalTest>>renderContentOn: html
>   html code id: #logger; with: DateAndTime now.
>   html paragraph: [
>      html submitButton
>         onClick: (html jQuery ajax
>            script: [ :s | s << (s jQuery: #logger) html: DateAndTime now ]);
>         with: 'Replace'.
>      html submitButton
>         onClick: (html jQuery ajax
>            script: [ :s | s << (s jQuery: #logger) prepend: DateAndTime now ]);
>         with: 'Prepend'.
>      html submitButton
>         onClick: (html jQuery ajax
>            script: [ :s | s << (s jQuery: #logger) append: DateAndTime now ]);
>         with: 'Append' ]
> "Source"
>
> <code id="logger">2010-12-21T18:56:27-08:00</code>
> <p>
>  <input id="id17" value="Replace" type="submit" class="submit"/>
>  <input id="id19" value="Prepend" type="submit" class="submit"/>
>  <input id="id21" value="Append" type="submit" class="submit"/>
> </p>
> </snip>
>
> I have consulted various documentation text about the use of the '<<' command/
> What is it?
> Is there documentation for how jQuery for Seaside was architected?
> Thanks
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list