Fun with Ajax and Firefox.

November 23, 2007

...and by "fun" I mean "WTF?!" This code works just fine on Firefox 2.0.0.3 (on Windows XP): ...updateChildControls() gets called just fine, and all is good. Note, I deliberately called open() with the 3rd argument set to "false". It would take a while to explain, but this is actually creating the type of behavior in the UI that I'm hoping for, so this is intentionally a bit off from the norm (at least in most of my Ajax books). However that same code does NOT run on Firefox 2.0.0.9 (on Windows XP), nor does it run on Firefox 2.0.0.6 on Ubuntu. No error messages on any of the machines. updateChildControls() simply never gets called! I have to change it to this: ...which I find rather annoying. Can anyone tell me WHY?! If we're not supposed to flip that 3rd argument to "false", then shouldn't it throw an exception? Give me a message in the Error Console? Something? Maybe this is just what happens when trying to write code the day after Thanksgiving. Can I blame a chemical in the turkey? :)