Sunday, July 20, 2008

An undocumented change in Javascript on your iphone

Just thought I'd make a quick mention of a change that broke some ooTunes functionality in the safari browser on the new iphone 3g and iphone 2.0.  When picking a specific genre, artist or album from a playlist, ooTunes updates the list of songs using ajax, by listening for the "onchange" event on the select component.  Well, with the new firmware, that stopped working.  I did a few quick checks and thanks to someone with the new firmware, discovered that the event is simply never fired anymore.  The only event I found that I could use that would work the same on both firmware's was the "onblur" event.  This means now the playlist isn't updated until you click "done" whereas before, it updated as soon as something was picked from the list.  The change was already made and can be downloaded from the ooTunes website.

No comments: