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:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old March 10th, 2004, 11:38 AM
didgemaster didgemaster is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 didgemaster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry ASP Form validation

Hi all I'm having a problem with my form validation in my asp page

The page is attached in the form of a text document.

As you can see I am very new to both javascript and ASP and most of my code comes from other sites. the function "valbutton(thisform)" when the delete button is clicked. The script will return the alert box to say that the radio button is not checked. However if the button is checked and the button is clicked nothing happens the function does not allow the asp to continue. Without the validation the asp will work when the radiobutton is checked

Help anybody Please

Didge
Attached Files
File Type: txt 2DeleteAdmin.txt (3.3 KB, 579 views)

Reply With Quote
  #2  
Old March 10th, 2004, 06:05 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 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
A good way to test if your Javascript function is correctly being called, is to place an "alert("got here")" statement at the top of the function. That way you'll know where you're getting to.

Also, you should not place the form.submit line in your ValButton func, as that is what will happen anyway, if a "true" value is returned. Make your onsubmit call look like this:
onsubmit="return ValButton()"

Then, either return true for false only, from your JS func.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > ASP Form validation


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 | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway