WARenderCanvas>>button has allways a class attribute

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

WARenderCanvas>>button has allways a class attribute

Thomas Fischer
Hi list,
is there a way to disable the default class attribute ( class="button" ) in
button tags?

salute
Thomas
Reply | Threaded
Open this post in threaded view
|

Re: WARenderCanvas>>button has allways a class attribute

Boris Popov, DeepCove Labs (SNN)
Re: [Seaside] WARenderCanvas>>button has allways a class attribute

Any specific reason? It helps styling different inputs in browsers that don't fully support 'type=' css selectors.

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Thu Apr 05 07:24:05 2007
Subject: [Seaside] WARenderCanvas>>button has allways a class attribute


Hi list,
is there a way to disable the default class attribute ( class="button" ) in
button tags?

salute
Thomas
--
View this message in context: http://www.nabble.com/WARenderCanvas%3E%3Ebutton-has-allways-a-class-attribute-tf3531926.html#a9856839
Sent from the Squeak - Seaside mailing list archive at Nabble.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: WARenderCanvas>>button has allways a class attribute

Thomas Fischer
Hi,

Boris Popov-2 wrote:
> Any specific reason? It helps styling different inputs in browsers
> that don't fully support 'type=' css selectors.

We have overload WAButtontag>>tag with
  tag
    ^ 'button'
so that seaside produce a <button> and not a <input type="button">

salute
Thomas

Reply | Threaded
Open this post in threaded view
|

RE: WARenderCanvas>>button has allways a class attribute

Boris Popov, DeepCove Labs (SNN)
Even then class="button" shouldn't harm anything, so why remove it?
Either way you decide, the magic is in

WAFormInputTag>>with: aBlock
        self type isNil ifFalse: [
                self attributes at: 'type' ifAbsentPut: [ self type ].
                self class: self type ].
        super with: aBlock.

Just remove "self class: self type" and you're good to go,

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Thomas Fischer
> Sent: Thursday, April 05, 2007 8:09 AM
> To: [hidden email]
> Subject: Re: [Seaside] WARenderCanvas>>button has allways a class
> attribute
>
>
> Hi,
>
> Boris Popov-2 wrote:
> > Any specific reason? It helps styling different inputs in browsers
> > that don't fully support 'type=' css selectors.
>
> We have overload WAButtontag>>tag with
>   tag
>     ^ 'button'
> so that seaside produce a <button> and not a <input type="button">
>
> salute
> Thomas
>
>
> --
> View this message in context: http://www.nabble.com/Re%3A-
> WARenderCanvas%3E%3Ebutton-has-allways-a-class-attribute-
> tf3531948.html#a9857647
> Sent from the Squeak - Seaside mailing list archive at Nabble.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