4 replies [Last post]
newCssUser
newCssUser's picture
Offline
newbie
-
Last seen: 7 years 25 weeks ago
-
Timezone: GMT+1
Joined: 2015-01-09
Posts: 3
Points: 4

Hi to all.

Am using dreamweaver CS6 and spry to validate the textfield entry.
I have party changed the spry_something_.css file but i can not find a way how to change the background effect when you enter wrong set of characters (e.g. wrong mail ). I can disable it but instead of red background color in the text field, i want to set the texfield border. So basically, everything stays the same accept this css part.
When the user enters wrong email and moves to the second textfield, red border around first textfield, should appear.
Any idea how to make this directly in the spry---- . css file ?

Best regards !
Marco

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 weeks 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Hi newCssUser, Can you post a

Hi newCssUser,
Can you post a link to the spry css file.

It must be using JavaScript to set a class or set the background to red.
Look for where the background is being set to red and change the values there or modify the JavaScript.

newCssUser
newCssUser's picture
Offline
newbie
-
Last seen: 7 years 25 weeks ago
-
Timezone: GMT+1
Joined: 2015-01-09
Posts: 3
Points: 4

Hi Tony. Sorry for late

Hi Tony.
Sorry for late reply.
I can past the whole code. Its copyright from dreamveawer but if you dont remove the comments in the header, you can use it.
Anyway, you are the moderator, so you can delete it if you want.

Should i send it ?

File names:
SpryValidationTextField.js
SpryValidationTextField.css

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 weeks 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Hi newCssUser I found a link

Hi newCssUser
I found a link on the adobe site that should help, unfortunately it is down for me at the moment.
http://www.adobe.com/go/learn_dw_sprytextfield_custom

newCssUser
newCssUser's picture
Offline
newbie
-
Last seen: 7 years 25 weeks ago
-
Timezone: GMT+1
Joined: 2015-01-09
Posts: 3
Points: 4

Hi. Yea it's still down. Can

Hi. Yea it's still down.
Can i post some JS script here or is this strictly CSS coding forum ?