[Project_owners] Using XPath to validate fields
grimholtz at yahoo.com
Thu Mar 31 11:57:50 EST 2005
You really should change the style back to normal (background: white;
color: black) if there *is* a value in the field, not just change the
background to red if the field is empty. Otherwise, if the user
re-submits the wizard page after populating some of required fields
-- but not all -- they'll be returned to the page with populated
fields still red.
Neil, what are the !important and -moz-appearance styles? I've seen
them mentioned before, but do you have a link where I might read
about them more thoroughly? Also, are these "global" styles; i.e.,
can a user still set them even if David's extension doesn't specify
--- Neil <neil at parkwaycc.co.uk> wrote:
> Eric Jung wrote:
> >You might consider changing:
> > textboxes[z].focus();
> >to something like
> > textboxes[z].setAttribute("style", "background: red; color:
> >to make them stand out.
> That's not guaranteed to work. For a start the theme might already
> white textboxes on a red background. Or it might use !important
> Or it might use -moz-appearance...
> Project_owners mailing list
> Project_owners at mozdev.org
Show us what our next emoticon should look like. Join the fun.
More information about the Project_owners