Quote:
Lemme guess, the site you just redid was tables and you're converting them to CSS?
LOL! That and AJAXIFY it.
Quote:
Damn. I should have charged more!
Well, we cant always expect our clients to pay for our education. You'll have good tools after this one.
Quote:
This works, but a bit hackish....
Yeah.... not a good idea....
Quote:
The problem i'm having with using one 'anyerror' var is that when an element is correct, it changes the anyerror back to true.
Hmmm..... are you sure????
anyerrors=(!ok ? true : anyerrors);
What this should do is, set anyerrors to false first then, if we get a 'false' (!ok) from the validation, we set anyerrors to true.
If the validation returns tru, then we just do a dummy operation of making anyerrors equal anyerrors.
Problem is, if your validation doesn't return anything, I think THAT is the problem. Try this instead
anyerrors=(ok==false ? true : anyerrors);
This way if you slipped and did not return an explicit true, which I will bet is the issue here, it will explicitly look for a false.
!ok is false, OR no value.