I got an email the other day from Steven Mading, a developer at the BioMagnetic Resonance Bank at the University of Wisconsin. In it, he shared his experience using jsTrace and, with his permission, I’m sharing it with all of you:
onfocus, etc). The events were occurring in a weird order and I couldn’t trace what was happening. Using the standard
alert()function was useless because making an alert window POP up caused the events to be different and changed the relevant behavior (since
onblurwere a relevant part of the behavior, popping up a window changes the focus and invalidates the debugging information when what I’m trying to do is figure out why the focus changes aren’t happening the way I expect.)
Your jsTrace allowed me to figure out the problem (which, as it turns out, was that when I clicked on Widget B, I was calling BOTH the
onclickfor Widget B and the
onblurfor Widget A, but not always in a predictable order). So once I knew that was happening, I was able to redesign my code to work either way and thus fix the bug.
Again, thank you for making this tool publicly available.
I love it when things work out like that. It makes it all worthwhile.
Have you had an experience with using jsTrace that you’d like to share? Do you use it or any other scripts we’ve built often? Are any of the user enhancement scripts in use on production websites? Let us know your thoughts, good or bad.