Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-17 21:41:57

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

if/else conditionals on submit

Is there a way I can put if and else conditionals on the comment submit button and using CSS to style the button differently before and after comment has been previewed?

This is needed due to no difference in Firefox. You can see the different looks on the preview and submit buttons in IE but not Firefox.

Last edited by Ruhh (2008-04-17 21:47:06)


<txp:Ruhh />

Offline

#2 2008-04-17 23:04:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: if/else conditionals on submit

Ruhh wrote:

You can see the different looks on the preview and submit buttons in IE but not Firefox.

I can.

Offline

#3 2008-04-17 23:48:05

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: if/else conditionals on submit

Offline

#4 2008-04-17 23:51:36

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: if/else conditionals on submit

@ Els: you can? o.O Then why am I not seeing the submit text the same as in IE. In IE, it becomes sort of visible unlike FF where I see normally, just black.

EDIT: Ok, nevermind. I had to get rid of the font color for input in my stylesheet.

Last edited by Ruhh (2008-04-17 23:53:28)


<txp:Ruhh />

Offline

#5 2008-04-18 00:04:47

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: if/else conditionals on submit

Ruhh wrote:

@ Els: you can? o.O Then why am I not seeing the submit text the same as in IE. In IE, it becomes sort of visible unlike FF where I see normally, just black.

EDIT: Ok, nevermind. I had to get rid of the font color for input in my stylesheet.

PS. Remember that OS/Browser themes can also change the look of buttons :)

Offline

Board footer

Powered by FluxBB