HighDots Forums  

Check field

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss Check field in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Benjo
 
Posts: n/a

Default Check field - 09-12-2003 , 04:43 PM






vorrei sapere se qualcuno conosce qulche script per impedire ad un'utente di
inserire particolari caratteri [per es.: www, @, http] in un campo di testo,
con la funzione Alert che lo avverta dell'errore.

grazie





Reply With Quote
  #2  
Old   
ShadowMan
 
Posts: n/a

Default Re: Check field - 09-15-2003 , 06:28 AM






"Benjo" <benjo2099 (AT) hotmail (DOT) com> wrote


Quote:
vorrei sapere se qualcuno conosce qulche script per impedire ad un'utente di
inserire particolari caratteri [per es.: www, @, http] in un campo di testo,
con la funzione Alert che lo avverta dell'errore.

grazie
Potresti fare un controllo sull'evento 'onKeyDown' oppure 'onKeyPress'
Ricordati che perņ č buona norma ricontrollare il tutto al submit della
form
e magari anche lato server.
Buona parte dei controlli javascript saltano semplicemente con un
'copia-incolla'!!
--
ShadowMan




--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.