Hello everyone,

There's a form I try to validate.
As there is a Nickname field, I check with the Remote method if it's
already used or not. I use a php file that forms a query to the MySql
database asking if the nickname entered from keyboard is equal to the
nickname I pass to the file (I get it earlier), I mean, the nick that
is already taken by the user.
Everything works flawlessly and well, but there is one case when the
form does submit but does not validate properly: if we go to the page,
 change something but not the Nickname and then press Submit.
So, the Remote method does work onBlur and onChange but not onSubmit.
Now I'm focusing the Nickname field on the ready state:
$("#unick").focus();
So the user lands on the Nickname itself just when he/she is on the
settings page.
but it's not too nice, don't you think so? So I wonder: why the
validation plugin doesn't send the Ajax request onSubmit, also?
                  Thanks!
                  

-- 
With best regards from Ukraine,
Andre
Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: m_elensule

Reply via email to