Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please check why this is not running?

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sure the browser gives you an error.

In IE, click on the error icon in the status bar.
Firefox: install the Firebug extension: http://getfirebug.com

And your error is a fat finger mistake.

Eric
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
I am sure the browser gives you an error.

In IE, click on the error icon in the status bar.
Firefox: install the Firebug extension: http://getfirebug.com

And your error is a fat finger mistake.

Eric


I am checking with both browsers don't know about firefox but IE is not giving any error

copy paste the code and check the IE is not giving any error

Thanks again
[ October 20, 2008: Message edited by: Farakh khan ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I DO NOT have to copy and paste the code to see the error.

I see the error in your code.
Read through your code out loud line by line.

Eric
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
I DO NOT have to copy and paste the code to see the error.

I see the error in your code.
Read through your code out loud line by line.

Eric


Thanks again Eric

I am unable to find my error. Can you please point out?

Regards
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mistyped something. Follow Eric's suggestion and examine each variable/method name carefully.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
You mistyped something. Follow Eric's suggestion and examine each variable/method name carefully.


Thanks for pointing out. I corrected parseInt but still not working?

thanks again
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE says you have an error on line 26. Now that is not an exact number, that is an estimate. If you look around there, you should see your second typo.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Turn IE errors on, or run the script in Firefox to see your error.

How will you ever get anything done if you need to post to a forum every time you make a typo?
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Turn IE errors on, or run the script in Firefox to see your error.

How will you ever get anything done if you need to post to a forum every time you make a typo?


Thanks a lot
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome. Learning how to diagnose errors is an important part of development.
 
Vikas Govindswamy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Farakh,
compare this line with yours, and find out the mistake you have done.
document.write("Class average is " + avrage);

-Vikas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic