[HTMLPad] Javascript stopped working

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

http://getfirebug.com/docs.html has some good info.

first, in firefox, go to tools>firebug> and make sure firebug is enabled.

then on your page, go to tools>firebug>inspect element (ctrl+shift+c) - and mouse around your page. you'll see the relevant html/css in the window below. if you click on the DOM tab on the lower right, you can see all of the objects DOM properties (great for javascript).

on the lower left, you'll see 'console'. if you click that, it will tell you any errors in your JS and tell you what line it's on. sweet.

you can add this line to your JS:

Code: Select all

console.log(foo)
to dump the contents or type of variable onto the console there. if you wrap it in quotes you can output a generic string of text. if you're having trouble with a script, dropping in a console.log() at different points can tell you if the script is making it that far or if a variable is being loaded the way you think it is. It's just like using alerts really but without the annoying alert boxes. :)

hopefully that and the docs at getfirebug should be enough to get you started. there are many many more things firebug can do.

good luck.
will
Post Reply