JavaScript

Mar. 7th, 2007 04:21 pm
laurierobey: (Default)
[personal profile] laurierobey
Anybody know of a good JavaScript debugger?

I'm trying to write a small JavaScript script to check off a certain checkbox when a different checkbox is checked (and uncheck if the first one is unchecked). The page is generated dynamically from database data, so I don't necessarily know the IDs of the checkboxes, which is my problem.

Date: 2007-03-07 11:13 pm (UTC)
From: [identity profile] pholph.livejournal.com
Honestly, I've always just written debugging outputs in my code as I went, if I was tracking down things, I'd have it dump out what I needed inline.

DB Generated/populated Javascript can be -quite- the pain to debug. 'view source' and the ability to Think In C helps.

Date: 2007-03-08 09:14 pm (UTC)
From: [identity profile] laurie-robey.livejournal.com
Actually, it hurts my brain that this worked as quickly as it did, but I identified the particular checkbox I needed by just changing the number around until the correct one checked off when I checked the first one.

Profile

laurierobey: (Default)
laurierobey

January 2013

S M T W T F S
  1 2 34 5
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

  • Style: Caturday - Orange Tabby for Heads Up by momijizuakmori

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 02:40 pm
Powered by Dreamwidth Studios