/    Sign up×
Community /Pin to ProfileBookmark

Allow only printable characters in textfields

i have a req where have to allow the user to enter printable characters,
if he enters non printable characters need to throw an alert…

any suggestions or example code?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@mrhooNov 19.2008 — never mind- I see you have another thread going on this subject.
Copy linkTweet thisAlerts:
@redditp_gmail_cauthorNov 19.2008 — mrhoo..

thanks, but that is different thread..

here i need to validate that text contains only printable characters..
Copy linkTweet thisAlerts:
@redditp_gmail_cauthorNov 19.2008 — Hi, this one was resolved...i just checked each character between 32 and 125 againsta ascii values...

it worked..thanks
×

Success!

Help @redditp_gmail_c spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...