This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Please check why this is not running? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Please check why this is not running?" Watch "Please check why this is not running?" New topic
Author

Please check why this is not running?

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Mar 22, 2008
Posts: 732
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Mar 22, 2008
Posts: 732
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
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
You mistyped something. Follow Eric's suggestion and examine each variable/method name carefully.


Ping & DNS - my free Android networking tools app
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61456
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
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

Joined: Jan 10, 2002
Posts: 61456
    
  67

You're welcome. Learning how to diagnose errors is an important part of development.
Vikas Govindswamy
Greenhorn

Joined: Aug 27, 2008
Posts: 18
Hi Farakh,
compare this line with yours, and find out the mistake you have done.
document.write("Class average is " + avrage);

-Vikas
 
jQuery in Action, 2nd edition
 
subject: Please check why this is not running?