Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:40 PM
diong
Guest
 
Posts: n/a
Default validation problem


please help! i have a form validation problem.

here is the code

if ((form1.Decline.value=='') && (form1.OfficeStatus == "YES") &
(form1.FloorBldgDiscStat.value=='')) {
alert('Enter value on floorbldgstat')
return (false);
}


This validation does not work when i try to update my asp page i
should prompt the alert msg. My OfficeStatus field is a dropdown with
value of "YES" and "NO". What i should i use to get the value "YES" i
javascript. Single equal sign(=) or double equal sign (==), and anothe
one is what should i use in enclosing the "YES" value. '' or "".

thanks for the help


-
dion
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

  #2  
Old July 19th, 2005, 01:40 PM
diong
Guest
 
Posts: n/a
Default Re: validation problem


please help! i have a form validation problem.

here is the code

if ((form1.Decline.value=='') && (form1.OfficeStatus.value == "YES") &
(form1.Flo
orBldgDiscStat.value=='')) {
alert('Enter value on floorbldgstat')
return (false);
}


This validation does not work when i try to update my asp page i
should pro
mpt the alert msg. My OfficeStatus field is a dropdown with a value o
"YES"
and "NO". What i should i use to get the value "YES" in javascript
Single
equal sign(=) or double equal sign (==), and another one is what shoul
i us
e in enclosing the "YES" value. '' or "".

thanks for the help


-
dion
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

  #3  
Old July 19th, 2005, 01:42 PM
Roland Hall
Guest
 
Posts: n/a
Default Re: validation problem

"diong" <diong.17hh1o@mail.codecomments.com> wrote in message
news:diong.17hh1o@mail.codecomments.com...
:
: please help! i have a form validation problem.
:
: here is the code
:
: if ((form1.Decline.value=='') && (form1.OfficeStatus == "YES") &&
: (form1.FloorBldgDiscStat.value=='')) {
: alert('Enter value on floorbldgstat')
: return (false);
: }
:
:
: This validation does not work when i try to update my asp page it
: should prompt the alert msg. My OfficeStatus field is a dropdown with a
: value of "YES" and "NO". What i should i use to get the value "YES" in
: javascript. Single equal sign(=) or double equal sign (==), and another
: one is what should i use in enclosing the "YES" value. '' or "".

This is not ASP related and should be followed up on in a j(ava)script NG.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles