By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 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
2000hse.googlegroups.com>, Sat, 18 Oct 2008 09:38:25, Totti <saliba.touf
ic*******@gmail.composted:
>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"
statements.

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. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, 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.