writing a function to verify data inputted in textboxes

This is a discussion on "writing a function to verify data inputted in textboxes" within the JavaScript Forum section. This forum, and the thread "writing a function to verify data inputted in textboxes are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 21st, 2006, 06:15
Junior Member
Join Date: May 2006
Location: washington
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
writing a function to verify data inputted in textboxes

Although I've read and read information on javascript, I still can't put together a function that checks to make sure the correct data is being inputted in some textboxes.

I have five textboxes that I've created in ASP but now need to create a script that can verify whether the user inputted data or not. Can anyone guide me on how I can set this up?

There is a textbox that requires "numbers" only, when I place "string characters" in the box, it errors out. How can I avoid this from happening?

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 21st, 2006, 20:04
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: writing a function to verify data inputted in textboxes

Quote:
I have five textboxes that I've created in ASP...
Did you mean this literally or are you using standard html elements such as
Code: Select all
<input type='text'...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 4th, 2006, 03:29
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 155
Thanks: 0
Thanked 4 Times in 4 Posts
Re: writing a function to verify data inputted in textboxes

Sounds like you might want to look at regular expressions. A bit cryptic, but may be just what your looking for if you want to check for certain characters. Also if your using input boxes, they are strings automatically and you may have to use parseInt() to make them integers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
writing, function, verify, data, inputted, textboxes

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Textboxes RubyRue ASP.NET Forum 2 Feb 21st, 2008 17:51
multiple table data retrieval with function Wheatus7 Databases 0 Jun 26th, 2007 13:01
plz help me verify this... calling function melvinoyh JavaScript Forum 0 May 29th, 2006 01:35
Lists, Buttons and Textboxes callamac Web Page Design 4 Apr 6th, 2006 13:39
autofill textboxes hamboy Web Page Design 3 Feb 14th, 2006 19:42


All times are GMT. The time now is 23:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved