
Firefox throws javascript error when setting listeners after Ajax replacement
If you use Ajax to replace the 5.3.1356 player.swf in a webpage, Firefox will not reattach the listeners (onPlay, onPause, onComplete, etc). It works fine if you don't use Ajax. Chrome, Safari, and IE8 all work fine in both cases.
When you do an ajax replacement of the player and then call jwplayer().setup, Firefox throws the following javascript error in Firebug:
Error: o.jwAddEventListener is not a function
Source File: http://buladean.com/jw53/eventtest/jwplayer.js
Line: 1
I've created a test page at
http://buladean.com/jw53/eventtest/
When the test page starts, it is non-ajax, and works fine in all browsers. If you click either of the buttons above, it will ajax replace the player. All browsers handle this fine except Firefox, which throws the error above.
Bob