SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

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

SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

barry10
hi, while progressing http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with Seaside 2.8 i have the following synax question.

In Seaside 2.8 what is the short version of

"html span class: 'field'; with: [html select list: #(Male Female); selected: self gender;  callback: [:v | self gender: v]]. "

?

The tutorial hints it should be something linke:
"html span class: 'field' with:
but i can't make it work.

can you help?

Thanks,

Barry




Reply | Threaded
Open this post in threaded view
|

Re: SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

John Thornborrow
That is the "short" version; though I would format as so:

html span
        class: 'field';
        with: [
                html select
                list: #(Male Female);
                selected: self gender;
                callback: [:aGender | self gender: aGender]
        ]

Purely for readability.

Regards,
John

www.pinesoft.co.uk

barry10 wrote:

> hi, while progressing
> http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with
> Seaside 2.8 i have the following synax question.
>
> In Seaside 2.8 what is the short version of
>
> "html span class: 'field'; with: [html select list: #(Male Female);
> selected: self gender;  callback: [:v | self gender: v]]. "
>
> ?
>
> The tutorial hints it should be something linke:
> "html span class: 'field' with:
> but i can't make it work.
>
> can you help?
>
> Thanks,
>
> Barry
>
>
>
>
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

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

Re: SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

barry10
hi John,

Thanks,

do you also know what the short version is?

html span
        class: 'field';
        with: [
                html select
                list: #(Male Female);
                selected: self gender;
                callback: [:aGender | self gender: aGender]
        ]

i can't figure what the short function is somehow.

Barry

John Thornborrow wrote
That is the "short" version; though I would format as so:

html span
        class: 'field';
        with: [
                html select
                list: #(Male Female);
                selected: self gender;
                callback: [:aGender | self gender: aGender]
        ]

Purely for readability.

Regards,
John

www.pinesoft.co.uk

barry10 wrote:
> hi, while progressing
> http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with
> Seaside 2.8 i have the following synax question.
>
> In Seaside 2.8 what is the short version of
>
> "html span class: 'field'; with: [html select list: #(Male Female);
> selected: self gender;  callback: [:v | self gender: v]]. "
>
> ?
>
> The tutorial hints it should be something linke:
> "html span class: 'field' with:
> but i can't make it work.
>
> can you help?
>
> Thanks,
>
> Barry
>
>
>
>
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

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

Re: SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

barry10
The tutorial hints that the short version is:

html spanClass: 'field'
             with: [html selectInputOn: #gender of: self list: #(Male Female)]

but i can't make it work.



barry10 wrote
hi John,

Thanks,

do you also know what the short version is?

html span
        class: 'field';
        with: [
                html select
                list: #(Male Female);
                selected: self gender;
                callback: [:aGender | self gender: aGender]
        ]

i can't figure what the short function is somehow.

Barry

John Thornborrow wrote
That is the "short" version; though I would format as so:

html span
        class: 'field';
        with: [
                html select
                list: #(Male Female);
                selected: self gender;
                callback: [:aGender | self gender: aGender]
        ]

Purely for readability.

Regards,
John

www.pinesoft.co.uk

barry10 wrote:
> hi, while progressing
> http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with
> Seaside 2.8 i have the following synax question.
>
> In Seaside 2.8 what is the short version of
>
> "html span class: 'field'; with: [html select list: #(Male Female);
> selected: self gender;  callback: [:v | self gender: v]]. "
>
> ?
>
> The tutorial hints it should be something linke:
> "html span class: 'field' with:
> but i can't make it work.
>
> can you help?
>
> Thanks,
>
> Barry
>
>
>
>
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

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

Re: SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

John Thornborrow
Hi,

That tutorial is quite old, and #spanClass: is now deprecated (and
removed) API. the message spanClass: is no longer present, thus you
can't use it.

Regards,
John

www.pinesoft.co.uk

barry10 wrote:

> The tutorial hints that the short version is:
>
> html spanClass: 'field'
>     with: [html selectInputOn: #gender of: self list: #(Male Female)]
>
> but i can't make it work.
>
>
>
>
> barry10 wrote:
>> hi John,
>>
>> Thanks,
>>
>> do you also know what the short version is?
>>
>> html span
>> class: 'field';
>> with: [
>> html select
>> list: #(Male Female);
>> selected: self gender;
>> callback: [:aGender | self gender: aGender]
>> ]
>>
>> i can't figure what the short function is somehow.
>>
>> Barry
>>
>>
>> John Thornborrow wrote:
>>> That is the "short" version; though I would format as so:
>>>
>>> html span
>>> class: 'field';
>>> with: [
>>> html select
>>> list: #(Male Female);
>>> selected: self gender;
>>> callback: [:aGender | self gender: aGender]
>>> ]
>>>
>>> Purely for readability.
>>>
>>> Regards,
>>> John
>>>
>>> www.pinesoft.co.uk
>>>
>>> barry10 wrote:
>>>> hi, while progressing
>>>> http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with
>>>> Seaside 2.8 i have the following synax question.
>>>>
>>>> In Seaside 2.8 what is the short version of
>>>>
>>>> "html span class: 'field'; with: [html select list: #(Male Female);
>>>> selected: self gender;  callback: [:v | self gender: v]]. "
>>>>
>>>> ?
>>>>
>>>> The tutorial hints it should be something linke:
>>>> "html span class: 'field' with:
>>>> but i can't make it work.
>>>>
>>>> can you help?
>>>>
>>>> Thanks,
>>>>
>>>> Barry
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> Pinesoft Computers are registered in England, Registered number: 2914825.
>>> Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>>>
>>>
>>>
>>> This message has been scanned for viruses by BlackSpider MailControl -
>>> www.blackspider.com
>>>
>>> _______________________________________________
>>> 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: SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

Philippe Marschall
In reply to this post by John Thornborrow
2007/10/4, John Thornborrow <[hidden email]>:

> That is the "short" version; though I would format as so:
>
> html span
>         class: 'field';
>         with: [
>                 html select
>                 list: #(Male Female);
>                 selected: self gender;
>                 callback: [:aGender | self gender: aGender]
>         ]
>
> Purely for readability.

You can make it even shorter:
html span
       class: 'field';
       with: [
               html select
                       list: #(Male Female);
                       on: # gender of: self ]

Cheers
Philippe

> Regards,
> John
>
> www.pinesoft.co.uk
>
> barry10 wrote:
> > hi, while progressing
> > http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with
> > Seaside 2.8 i have the following synax question.
> >
> > In Seaside 2.8 what is the short version of
> >
> > "html span class: 'field'; with: [html select list: #(Male Female);
> > selected: self gender;  callback: [:v | self gender: v]]. "
> >
> > ?
> >
> > The tutorial hints it should be something linke:
> > "html span class: 'field' with:
> > but i can't make it work.
> >
> > can you help?
> >
> > Thanks,
> >
> > Barry
> >
> >
> >
> >
> >
>
>
> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
>
> _______________________________________________
> 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: SC tutorial question / Seaside 2.8 / [html selectInputOn: #gender of: self list: #(Male Female)]" problem

barry10
Thanks Philippe,

I now understand the short version!

Thans again,

Barry


Philippe Marschall wrote
2007/10/4, John Thornborrow <john@pinesoft.co.uk>:
> That is the "short" version; though I would format as so:
>
> html span
>         class: 'field';
>         with: [
>                 html select
>                 list: #(Male Female);
>                 selected: self gender;
>                 callback: [:aGender | self gender: aGender]
>         ]
>
> Purely for readability.

You can make it even shorter:
html span
       class: 'field';
       with: [
               html select
                       list: #(Male Female);
                       on: # gender of: self ]

Cheers
Philippe

> Regards,
> John
>
> www.pinesoft.co.uk
>
> barry10 wrote:
> > hi, while progressing
> > http://www.shaffer-consulting.com/david/Seaside/Forms/index.html with
> > Seaside 2.8 i have the following synax question.
> >
> > In Seaside 2.8 what is the short version of
> >
> > "html span class: 'field'; with: [html select list: #(Male Female);
> > selected: self gender;  callback: [:v | self gender: v]]. "
> >
> > ?
> >
> > The tutorial hints it should be something linke:
> > "html span class: 'field' with:
> > but i can't make it work.
> >
> > can you help?
> >
> > Thanks,
> >
> > Barry
> >
> >
> >
> >
> >
>
>
> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
>
> _______________________________________________
> Seaside mailing list
> Seaside@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
Seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside