Shawn,
Many thanks.
Is JS picky about nulls, needing some kind of isnull() function?
I have an HTML text box named txtYourEmailAddress in an HTML form named
frmForm (is that original, or what?). I want to make sure the email address
at least isn't empty; if it is I want to change the value of another text
box, txtSubmitForm. When I use:
if (frmForm.txtYourEmailAddress = "")
{ frmForm.txtSubmitForm.value = "No" }
the condition gate is treated as false (when it is true). How are
conditional comparisons to null values written?
And while I'm on a roll, in VBS, for a function frmForm_OnSubmit, I can use
a Boolean statement like
FrmForm_OnSubmit = FALSE
And the form doesn't get submitted.
Does JS have an equivalent? (This second question is similar to a question
in my response to Irfan, which should be posting about the same time as this
one)
TIA,
Far
-----Original Message-----
From: Shawn K. Hall [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 01, 2005 8:08 AM
To: [email protected]
Subject: Re: [ASP] Javascript Questions
Hi Far,
> What would the syntax be for the exit function
> instruction.
return;
Optionally, you can have it return a value using:
return "something";
> strLocation = strCity & ", " & strState
>
> What would the syntax be for the strLocation
> statement in JavaScript?
strLocation = strCity + ", " + strState
Regards,
Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/