Click here to Skip to main content
15,890,438 members
Home / Discussions / Web Development
   

Web Development

 
GeneralJavascript Object not Found error Pin
MylesOtter11-May-05 9:49
MylesOtter11-May-05 9:49 
GeneralRe: Javascript Object not Found error Pin
sprout7423-May-05 3:36
sprout7423-May-05 3:36 
GeneralSQL Injection Attacks Pin
Brendan Vogt10-May-05 20:21
Brendan Vogt10-May-05 20:21 
GeneralRe: SQL Injection Attacks Pin
Michael P Butler10-May-05 21:04
Michael P Butler10-May-05 21:04 
GeneralRe: SQL Injection Attacks Pin
Brendan Vogt10-May-05 21:12
Brendan Vogt10-May-05 21:12 
GeneralRe: SQL Injection Attacks Pin
Colin Angus Mackay12-May-05 4:44
Colin Angus Mackay12-May-05 4:44 
GeneralCreateParameter Length Value Pin
Brendan Vogt10-May-05 20:19
Brendan Vogt10-May-05 20:19 
GeneralRegular expressions Pin
Brendan Vogt10-May-05 20:16
Brendan Vogt10-May-05 20:16 
Hi there,

I have a problem with my regular expression functions. The thing is that it accepts alpha characters and numeric characters where I only want it to accept alpha characters from a thru z, and A thru Z. So Brendan would be valid, and Brendan1 would be invalid.


My test function in my .js file

function isOnlyAlpha(strString)
{
var re = /[a-z]/i;
var isValid = re.test(strString);
return isValid;
}


And my calling function from my .asp page

if(!isOnlyAlpha(form.txtFName.value))
{
alert('Valid first name required!');
form.txtFName.focus();
return false;
}

My regular expression looks right to me! What do you think.

Brendan
GeneralRe: Regular expressions Pin
MylesOtter11-May-05 10:14
MylesOtter11-May-05 10:14 
GeneralPHP AND JavaScript Pin
progman10-May-05 11:55
progman10-May-05 11:55 
GeneralRe: PHP AND JavaScript Pin
abhi_code11-May-05 2:11
abhi_code11-May-05 2:11 
QuestionSyntax coloring in HTML ? Pin
borax710-May-05 10:51
borax710-May-05 10:51 
GeneralQuick Problem Pin
TofuBug2410-May-05 7:43
TofuBug2410-May-05 7:43 
Generalweb site search problem Pin
Khyati Asher10-May-05 3:34
Khyati Asher10-May-05 3:34 
GeneralRe: web site search problem Pin
markkuk10-May-05 11:37
markkuk10-May-05 11:37 
GeneralReg Ex question. Pin
theJazzyBrain9-May-05 22:14
theJazzyBrain9-May-05 22:14 
GeneralJavascript Form Function Help Needed Pin
angelina_jolie9-May-05 20:37
angelina_jolie9-May-05 20:37 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.9-May-05 20:59
Yulianto.9-May-05 20:59 
GeneralRe: Javascript Form Function Help Needed Pin
angelina_jolie9-May-05 21:08
angelina_jolie9-May-05 21:08 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.9-May-05 21:14
Yulianto.9-May-05 21:14 
GeneralRe: Javascript Form Function Help Needed Pin
angelina_jolie9-May-05 21:53
angelina_jolie9-May-05 21:53 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.9-May-05 22:08
Yulianto.9-May-05 22:08 
GeneralRe: Javascript Form Function Help Needed Pin
angelina_jolie9-May-05 22:11
angelina_jolie9-May-05 22:11 
GeneralRe: Javascript Form Function Help Needed Pin
DavidNohejl10-May-05 0:01
DavidNohejl10-May-05 0:01 
GeneralRe: Javascript Form Function Help Needed Pin
Yulianto.10-May-05 17:00
Yulianto.10-May-05 17:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.