Put an end to deadline headaches, or painful Script-itis. The JxPharmacy is a collaborative effort, and we invite you to contribute your own scripts, which the Doc will review and post if they meet his standards for potency and efficacy. By Tomer Shiran. This week the Doc shows how to use object detection for more reliable browser compatibility routines. Many scripters check for particular browsers or version numbers to conditionally execute code, but this method can be problematic.
Some browsers can slip through the cracks, especially beta versions.
Object or method detection is more reliable, as you're checking for the specific feature you're using. First you'll learn how to check if a specific object or method exists, then how to act accordingly. The Doc also shows how to get rid of those ugly JavaScript error messages with the window.onerror event handler. By Tomer Shiran. The best ways to find out what's new and to be found on the Web.