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

Simple javascript won't run

 
Eric Edwards
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to javascript.
Would someone please tell me why this program won't run?
I ran it on IE and FireFox, nothing other than the button showing works.
This is such a simple little program.

Thanks for any help,
Eric
I changed onclick to on click to make it throug security.
 
Eric Edwards
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it figured out.
In my function I have a colon
instead of a semi-colon.
Eric
[ March 09, 2006: Message edited by: Eric Edwards ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply turning on the Javascript console when debugging will save you a lot of hair.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will save you a lot of hair

and a lot of fur
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fur I got... it's hair that's in short supply!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Eric Edwards
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,
Thanks for the info on Java Console.
I didn't know such a thing existed.
My JavaScript book had some info on it which I hadn't gotten to yet.
Found out IE doesn't support it, but I have FireFox also.
I put the colon error back in and it brought it up.
Thanks,
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic