By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,967 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,967 IT Pros & Developers. It's quick & easy.

Re: Script not accepting some values

P: n/a
In comp.lang.javascript message <efdb6b8a-f08f-4a5f-9ab4-fb40fe52f14e@8g>, Sat, 18 Oct 2008 09:38:25, Totti <saliba.touf
>Hi all, first of all i am not sure if it is proper to paste a code on
the news group, if it is not please forgive this time and just tell me
that it is not a proper way to solve problems!
If you had read and heeded the FAQ before asking, you would have known
that; and your question might have been attended to sooner. After
fixing the errors you introduced by not doing so, just run the code in
Firefox with the error console open and you will be told exactly where
the problem is. It is not where you marked, but a little further, after
the Math.pow line. You could have discovered that by inserting "alert"

Firefox says
Error: amount is not defined
Source File: file:///C:/HOMEPAGE/$1.htm <- my copy
Line: 70

You have used document.MyForm.amount.value in validating. and
similar to read interest just after you thought it stopped; but you
have not used it to read the value from amount for calculating.

I cannot recommend using the same name for a form element and the value
taken from it; you are liable to confuse yourself.

Read FAQ 4.1 .. 4.4 (after reading the whole FAQ); you will need it.

Also, check your HTML with one of W3's testers, and correct it.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

(c) John Stockton, nr London UK. ? IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:>.
<URL: maths, dates, sources.
<URL:, FAQ items, links.
Oct 18 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Thanks a lot for pointing that out, i checked using alerts and i
solved my problem. one thing is that till this moment i wasn't using
FF and its console, therefore i havent had this knowledge, thanks for
this as well.
Oct 19 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.