I found the problem, John. There is a syntax error in the 5th line of code in the js - I used a capital "I" in "if". That caused the script to not appear in Firebug for some reason. I would have expected the script to load anyway, so that error could be isolated.
On Mar 18, 1:38 pm, del <[email protected]> wrote: > Thanks for the response! > > I have reloaded the page multiple times after opening Firebug - > including trying a new instance of Firefox/Firebug. > I installed 1.5.3 yesterday, along with the Rainbow extension. > > Here's is my simple js code (my_code.js) : > > /* ================================================== */ > var $ = function (id) { > return document.getElementByID(id); > > } > > var accept = $("accept").checked; > > If ( accept ) { > alert("Thank you. You may enter.");} else { > > alert("You accept first."); > > } > > /* ================================================== */ > > And here's my script definition in index.html: > > <! ==================================================> > > <head> > <title>My Code Tester</title> > <script type="text/javascript" src="my_code.js"></script> > </head> > > <! ==================================================> > > On Mar 18, 12:37 pm, John J Barton <[email protected]> > wrote: > > > On Mar 18, 10:09 am, del <[email protected]> wrote: > > > > I'm new to Firebug. I have one simple script referenced in my HTML > > > header that I'm trying to debug to become familiar with the tool. > > > > When I click on the Script tab, there is nothing. There is no drop- > > > down in the Firebug header to select a script. All I see is the Pause > > > button and the "All" drop-down. > > > > I'd like to see the script and try out some breakpoints. > > > > What am I doing wrong? > > > Did you reload the page after opening Firebug? > > Did you install a recent version (1.5.3 or 1.6a8)? > > Are all of your Firebug/Firefox extensions up to date? > > jjb -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
