defaultAction not working?

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

defaultAction not working?

EstebanLM
Hi,
I'm using Seaside 2.8 and Scriptaculous latests packages (tbn.539 and
lr.238 respectively) on a Squeak-dev from dammien cassou, based on 3.10
version.
Some component does this:

        html form
                defaultAction: [ self notifyChanges ] ;
                with: [
                        html select
                                labels: [ : each | each name ] ;
                                list: aPlayer allStars ;
                                beSubmitOnChange ;
                                on: #currentStar of: self ]

When I run the code, everything works: list is render and form is
triggered when I change some selection, but defaultAction is never
called (tested on Safari and Firefox browsers).

I'm missing something?

Thanks,
Esteban


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

Re: defaultAction not working?

Michael Davies-2
On Feb 1, 2008 11:08 AM, Esteban Lorenzano <[hidden email]> wrote:
> Hi,
> I'm using Seaside 2.8 and Scriptaculous latests packages (tbn.539 and
> lr.238 respectively) on a Squeak-dev from dammien cassou, based on 3.10
> version.

See http://bugs.squeak.org/view.php?id=6795 for the fix which got
applied in Seaside lr.533 - is this not working for you?

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

Re: defaultAction not working?

Philippe Marschall
In reply to this post by EstebanLM
2008/2/1, Esteban Lorenzano <[hidden email]>:

> Hi,
> I'm using Seaside 2.8 and Scriptaculous latests packages (tbn.539 and
> lr.238 respectively) on a Squeak-dev from dammien cassou, based on 3.10
> version.
> Some component does this:
>
>         html form
>                 defaultAction: [ self notifyChanges ] ;
>                 with: [
>                         html select
>                                 labels: [ : each | each name ] ;
>                                 list: aPlayer allStars ;
>                                 beSubmitOnChange ;
>                                 on: #currentStar of: self ]
>
> When I run the code, everything works: list is render and form is
> triggered when I change some selection, but defaultAction is never
> called (tested on Safari and Firefox browsers).
>
> I'm missing something?

The comment of #defaultAction: says

"The default action gets evaluated whenever the user presses submits
the form by pressing enter without having the focus on a specific
submit-button."

Just to make sure, you submit the form by pressing enter without
having the focus on a specific submit-button?

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

Re: defaultAction not working?

EstebanLM
On 2008-02-01 16:37:20 -0200, "Philippe Marschall"
<[hidden email]> said:

> 2008/2/1, Esteban Lorenzano <[hidden email]>:
>> Hi,
>> I'm using Seaside 2.8 and Scriptaculous latests packages (tbn.539 and
>> lr.238 respectively) on a Squeak-dev from dammien cassou, based on 3.10
>> version.
>> Some component does this:
>>
>> html form
>> defaultAction: [ self notifyChanges ] ;
>> with: [
>> html select
>> labels: [ : each | each name ] ;
>> list:aPlayer allStars ;
>> beSubmitOnChange ;
>> on: #currentStar of: self ]
>>
>> When I run the code, everything works: list is render and form is
>> triggered when I change some selection, but defaultAction is never
>> called (tested on Safari and Firefox browsers).
>>
>> I'm missing something?
>
> The comment of #defaultAction: says
>
> "The default action gets evaluated whenever the user presses submits
> the form by pressing enter without having the focus on a specific
> submit-button."
>
> Just to make sure, you submit the form by pressing enter without
> having the focus on a specific submit-button?
>
> Cheers
> Philippe

Er... no :(




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