jPlayer problem in Firefox - also throws error from jQuery?! Not related to OGG support.

Posted by wolftron on Stack Overflow See other posts from Stack Overflow or by wolftron
Published on 2011-01-17T06:49:52Z Indexed on 2011/01/17 6:53 UTC
Read the original article Hit count: 326

Filed under:
|
|
|
|

I've been working on a small SVG website, http://docroot.ca/ - the SVG part has been working out pretty well.

In the current site, jPlayer is called and given an mp3. jPlayer functions properly in Safari, Chrome, and Opera, but not Firefox which throws the following two errors:

Error: not well-formed
Source File: 
Line: 1, Column: 191
Source Code:
<div xmlns="http://www.w3.org/1999/xhtml"><embed name="jqjp_flash_0" id="jqjp_flash_0" src="js/Jplayer.swf" width="0" height="0" bgcolor="#ffffff" quality="high" FlashVars="id=jPlayerBox&fid=jqjp_flash_0&vol=80" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></

and:

Error: uncaught exception: [Exception... "An invalid or illegal string was specified"  code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)"  location: "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js Line: 122"]

I'm not sure why the latter happens at all. The former might have something to do with jPlayer's .swf component. The weird thing is the same code works in http://willshown.com/dw, but not in http://docroot.ca.

Any guesses as to what direction to take this problem?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery