Errore proprietà charcode jquery...

A

Alpha Omega

ciao a tutti,

questo semplice controllo sullo username su un form:

<script src="http://code.jquery.com/jquery-latest.js"></script>

<script type="text/javascript"
src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>

<script type="text/javascript">
window.onload = (function(){
$("#register_form").validate({
rules: {
username: {
required: true,
minLength: 3
}
}
}
}
</script>

da il seguente errore nella console javascript di firefox (Vers. 3.6.3),
ad ogni carattere digitato nel campo username:

" Avviso: Non si dovrebbe usare la proprietà 'charCode' di un evento
keyup: il valore non è significativo. "

Da cosa dipende questo errore?
 
T

Thomas 'PointedEars' Lahn

Alpha said:
<script src="http://code.jquery.com/jquery-latest.js"></script>
[...]
da il seguente errore nella console javascript di firefox (Vers. 3.6.3),
ad ogni carattere digitato nel campo username:

" Avviso: Non si dovrebbe usare la proprietà 'charCode' di un evento
keyup: il valore non è significativo. "

Da cosa dipende questo errore?

E uno *avviso*, _non_ un errore. Conclusione: Non usare jQuery.

[en] It is a *warning*, _not_ an error. Bottom line: Do not use jQuery.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top