[Seaside] Change normal button for any colour

Philippe Marschall philippe.marschall at gmail.com
Wed May 30 19:44:45 UTC 2007


2007/5/30, Rubén Parra Savall <kenterish at hotmail.com>:
>
>
> > > Almost perfect Philippe, because I don't want to change all my buttons
> > > whether some of them or just one and the another have to stay in the
> >same
> > > colour, I hope you can help me, is it possible to use conditions inside
> > > CSS??
> >
> >Yes, just assign them classes (or id's).
>
> How?? I'm newbie in CSS, so I don't know how to associate one button (or
> more) to a determined style.

Give it a class with

html submitButton
    class: 'myClass';
    with: [ ... ]

and then somewhere have a CSS with
.myClass {
    background-color: red;
}

> Remember that one button can change of colour more than one time in the
> execution of the application.

That's no problem, you can give it a different class the next time you
render it.

>
> >
> > > Anyway, somebody could explain me and put an example of
> > > submitButtonWithAction: image:, I tried all but I couldn't make it work
> >fine
> >
> >This is the old and deprecated API, you should stop using it.
> >
> >with the new API this is
> >
> >html imageButton
> >     form: aFrom;
> >     callback: [ ... ]
> >
> >where aFrom is an instance of Form. You can also do:
> >
> >html imageButton
> >     url: aUrl;
> >     callback: [ ... ]
> >
> >where aUrl is either a String for WAUrl that points to the image
>
> But this shows the image when you submit the button??

No this shows an image and when you click on it, it submits the form.

Cheers
Philippe

> >
> >Cheers
> >Philippe
> >
> > > >2007/5/29, RubÃ(c)n Parra Savall <kenterish at hotmail.com>:
> > > > >
> > > > >
> > > > > Hi!
> > > > >
> > > > > I was digging out how to change the appearance of a normal button to
> > > >another
> > > > > colour or just put in that place a surface coloured.
> > > > > Best thing I found out was the method submitButtonWithAction: image:
> >,
> > > >but I
> > > > > wondered if someone maybe knows a best way.
> > > >
> > > >CSS
> > > >
> > > >You can make all your buttons red with:
> > > >
> > > >style
> > > >     ^
> > > >'.submit {
> > > >       background-color: red;
> > > >}'
> > > >
> > > >Cheers
> > > >Philippe
> > > >
> > > > > Otherwise, if the method that I mentioned above is the more correct,
> >how
> > > > > does it work? Because I know you have to put value to the attributes
> > > >'width'
> > > > > and 'height' but how? How do you put the link to the image, both
> >local
> > > >host
> > > > > and web?
> > > > >
> > > > > Thanks very much,
> > > > >
> > > > > Cheers,
> > > > > RubÃ(c)n
> > > > >
> > > > > _________________________________________________________________
> > > > > Acepta el reto MSN Premium: Correos más divertidos con fotos y
> >textos
> > > > > increíbles en MSN Premium. Descárgalo y pruÃ(c)balo 2 meses
> >gratis.
> > > > >
> > >
> > >http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos
> > > > >
> > > > > _______________________________________________
> > > > > Seaside mailing list
> > > > > Seaside at lists.squeakfoundation.org
> > > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > >
> > > >
> > > >------------------------------
> > > >
> > > >_______________________________________________
> > > >Seaside mailing list
> > > >Seaside at lists.squeakfoundation.org
> > > >http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > >
> > > >
> > > >End of Seaside Digest, Vol 53, Issue 67
> > > >***************************************
> > >
> > > _________________________________________________________________
> > > Acepta el reto MSN Premium: Protección para tus hijos en internet.
> > > Descárgalo y pruÃ(c)balo 2 meses gratis.
> > >
> >http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil
> > >
> > > _______________________________________________
> > > Seaside mailing list
> > > Seaside at lists.squeakfoundation.org
> > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > >
> >
> >------------------------------
> >
> >_______________________________________________
> >Seaside mailing list
> >Seaside at lists.squeakfoundation.org
> >http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> >End of Seaside Digest, Vol 53, Issue 68
> >***************************************
>
> _________________________________________________________________
> Acepta el reto MSN Premium: Correos más divertidos con fotos y textos
> increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis.
> http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list