views:

105

answers:

2

Hi Experts..

Is there any reliable way to check if user has entered Arabic words into a form and tries to submit it? Can Javascript handle this? Or, only server script like .NET can do this?

I'm thinking that if possible the script should directly prevent the user from inputting Arabic words into the form and show an alert pop up.

Please share any examples if you have any idea how to do it.

Thanks

+9  A: 
Rex M
A: 

You could use the Google Ajax Language API to detect this. Here is an example.

Eli Grey