Uncaught Exceptions

Today I isolated a particularly frustrating bug. During the event creation process, clicking on any form field was producing an “uncaught exception” in FireFox.

uncaught exception: Permission denied to get property HTMLDivElement.parentNode

I finally isolated the problem to be coming from Matt Kruse’s Calendar Popup but could not, for the life of me, figure out what was causing it or how to get rid of it. Luckily, I remembered that I had seen the same calendar on MyPunchbowl, so I ran over there and grabbed their copy of the javascript file. I’m not sure what they did to it, but it’s no longer throwing errors. Thanks, MyPunchbowl!

8 Responses to “Uncaught Exceptions”

  1. Jay Vincent Says:

    I had the same problem. After running windiff on the original version against mypunchbowls problem, I came across a slight difference which accounted for the error.

    Original:
    var t = e.originalTarget;

    Mypunchbowl:
    var t = e.target;

    What exactly the change is doing I can’t really make out though… I’m just glad its fixed!

  2. Dr. Alabaster Says:

    The formatting in punchbowl’s version is so vastly different that my unix diff really doesn’t tell me much. Thanks for nailing this one guys, the calendar is good but I almost had to ditch it for something less sexy.

  3. steve Says:

    thanks so much for the fix. works great

  4. John Says:

    wow… thank you so much! i introduced the new calendar while also doing some autocomplete stuff and I was sifting through the scriptaculous code to try and find the event that isn’t catch it’s own exception. such a time saver!!

    still can’t get the darn textbox to focus the cursor, but that’s a much smaller problem to solve. (if you know the solution for this as well please feel free to ping me)

    cheers!!

    john

  5. Kevin Says:

    thanks for the fix. I spent 6 months wondering where I was getting this error from.

  6. FLUID Says:

    Thanks for very very helpful post! I’ve finally fixed this annoying bug in my JS!
    Cheers!

  7. Scott Says:

    Thanks! This worked for me as well! It took some time to find this solution. I didn’t even recognize that is was because of the calendar. Luckily I only spent a few hours on this issue thanks to this post!!!!

  8. ReofWooxom Says:

    I agreed with you

Leave a Reply