Hello AlBruAn,
AThe two textboxes I'm interested in are for Member Number and SSN. I
Athought of maybe using a regex expression to determine if the SSN
Atextbox contains a valid SSN.
Yep, just use the RegExp class in JS, like var re = new RegExp
As for the Member Number, I'd like to
Aenable the pushbutton by keystroke. When the user clicks the button,
AI'll post the data from one of the two fields; if the user has
so, as was recommended use the document.getElementById to find your control
and then set .disabled property to true
the same way you can retrieve the values
Aentered a value for Member Number, I'll check it against the DB and
Apull up the records for the member.
there you need to use the xmlhttprequest to retrieve the data from the server
AOtherwise, I'll display a popup
Abox stating that the user entered an incorrect Member Number.
use alert(your_Text)
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:
http://spaces.live.com/laflour
Team blog:
http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
A"bruce barker" wrote:
A>
>it all depends?
what do you mean by valid?
is the button enabled when the user tabs out, or per keystroke?
get any book on javascript and read about onblur, onkeydown,
document.getElementById.
-- bruce (sqlwork.com)
AlBruAn wrote:
>>BTW, I put it in the subject line, but failed to mention in the body
of the message that I have the AJAX toolkit installed on my machine.
"AlBruAn" wrote:
I have a form with some textboxes and a button. I'd like for the
button to be disabled until the user enters valid data in either of
two of the textboxes, but can't quite seem to figure out how to
accomplish this. Ideally, I'd like for this to happen without
having to post back to the server, but that's not a biggie.
Any help would be greatly appreciated.
Allen