I'm going through the examples in Geary/Horstmann's Core Java Server Faces. I typed Listing 4-1 "javascript/index.jsp" into NetBeans. This program has an embedded javascript function. I made a typo in the javascript. When Firefox came up, nothing happened at all I decided to switch browsers, to IE. When I ran the app again, IE had an icon that you can click in the lower left hand corner that brought up a box that explained the script error. When I corrected the error, the app worked in IE. I then switched back to Firefox, and the app worked.
The problem seems to be that Firefox does not report javascript errors or reports them in a way I couldn't see. Any comments? Is this a known problem?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
Look in the "Tools" menu for "JavaScript Console". That's where the JavaScript and CSS warnings and errors are listed.
Thanks guys, in Firefox it's Tools-->Error Console. I re-introduced my error (a misspelled variable) and there was the error message!
FireBug looks great at first glance. But as I am just starting out I don't want to add another layer just yet--wrestling with NetBeans is bad enough! Thanks again, Niels