Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] (no subject)
- From: linuxgold at gmail.com (Scott Hamm)
- Subject: [Javascript] (no subject)
- Date: Wed Nov 2 11:09:28 2005
Sorry. I will be more intelligent. :)
What I want is to accept values ONLY if sum of
krono_process.ktpo.value and krono_process.khrs.value do not exceed 8.
[code]
kpptot=Number(krono_process.kpto.value);
kphtot=Number(krono_process.khrs.value);
ktot=kpptot+kphtot;
If(ktot>8)
{
alert("Exceeding 8 hours total to use PTO")
krono_process.khrs.focus()
return false;
}
[/code]
On 11/2/05, Hassan Schroeder <hassan@xxxxxxxxxxxxxx> wrote:
> Scott Hamm wrote:
> > Tried your method to no avail: (thanks for trying)
>
> Well, since I don't have time to build a complete test harness to
> demo your code, perhaps (!) it would be helpful if you described
> *exactly* what "the problem" is, instead of
>
> > //here lies the problem
>
> What is or is not happening that you don't or do expect? Are there
> any error messages? Providing actual information will likely get
> you much better answers...
>
> ref: <http://www.catb.org/~esr/faqs/smart-questions.html>
> --
> Hassan Schroeder ----------------------------- hassan@xxxxxxxxxxxxxx
> Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
>
> dream. code.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
- Follow-Ups:
- [Javascript] (no subject)
- From: Matt Barton
- [Javascript] (no subject)
- References:
- [Javascript] (no subject)
- From: Scott Hamm
- [Javascript] (no subject)
- From: Hassan Schroeder
- [Javascript] (no subject)
- From: Scott Hamm
- [Javascript] (no subject)
- From: Hassan Schroeder
- [Javascript] (no subject)
- Prev by Date: [Javascript] (no subject)
- Next by Date: [Javascript] (no subject)
- Previous by thread: [Javascript] (no subject)
- Next by thread: [Javascript] (no subject)
- Index(es):