JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 9th, 2004, 08:31 PM
aron aron is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: brisbane
Posts: 42 aron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 9 m 35 sec
Reputation Power: 5
form validation help?

i have these to validation script that check to see if the input filed is blank or contains characters. i only want it to contain numbers

...value.charAt(i) = "") this part seems to wrong.

if (document.theForm.propid.value.charAt(i) = "") {
window.alert('Please enter only numbers in the property search field');
return false;
}
if (document.theForm.propid.value=="") {
window.alert ("Please Enter a Property ID!");
return false;
}

if (i==2) document.theForm.action=
"prop.php?page_from=all.php";
document.theForm.submit()

}

also this part "prop.php?page_from=all.php"; dosent seem to carry the ..?page_from=all.php

through to the prop.php page. why is that.

cheers aron.

Reply With Quote
  #2  
Old February 9th, 2004, 11:03 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Here is an absolute goldmine of validation functions: http://www.mattkruse.com/javascript/validations/
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old February 11th, 2004, 07:35 AM
gat gat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 24 gat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by stumpy
Here is an absolute goldmine of validation functions: http://www.mattkruse.com/javascript/validations/


you can also try this product...you get 14 days with it and it will generate all the code for you.

http://www.javascript-coder.com/index.phtml

You simply create the form in HTML, then open the coder prog and select that form you just created.

Then you can select validation criteria on a number of constraints.

Just an idea, if you want to save time coding it.
cheers.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > form validation help?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT