HighDots Forums  

Re: Script not accepting some values

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Script not accepting some values in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: Script not accepting some values - 10-18-2008 , 06:29 PM






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.george (AT) gmail (DOT) com> posted:
Quote:
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.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.


Reply With Quote
  #2  
Old   
Totti
 
Posts: n/a

Default Re: Script not accepting some values - 10-19-2008 , 02:36 AM






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.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.