PDA

Volledige versie bekijken : FF laadt geen XML


pstelt
%Europe/Berlin %971 %2009, 23:18
Hallo,

Ik wil met behulp van een HTML-bestand een swf (carrousel) aanroepen die gehost wordt op ander domein. Deze swf wordt geladen door een XML-bestand, bestaande uit een image, tooltip en url.

Met IE werkt het, maar FF laadt XML niet.

De HTML ziet er als volgt uit:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="http://www.domein.nl/map/" />
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="600" height="400">
<param name="movie" value="http://www.domein.nl/map/flash.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">

<!--[if !IE]> <-->
<object data="http://www.domein.nl/map/flash.swf" width="600" height="400" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="pluginurl" value="http://www.adobe.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</body>
</html>Ik heb al geprobeerd FlashVars in de HTML toe te voegen, maar dit had geen resultaat. Ook swfobject gaf hetzelfde resultaat.

Wellicht dat iemand suggesties heeft?

Paul

mknol
%Europe/Berlin %050 %2009, 01:13
Je moet een base-param in de object tag opgeven, zodat de flash vanuit die locatie aangeroepen wordt:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="600" height="400">
<param name="movie" value="http://www.domein.nl/map/flash.swf">
<param name="base" value="http://www.domein.nl/map/">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">

<!--[if !IE]> <-->
<object data="http://www.domein.nl/map/flash.swf" width="600" height="400" type="application/x-shockwave-flash">
<param name="base" value="http://www.domein.nl/map/">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="pluginurl" value="http://www.adobe.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</body>
</html>Daarbij raad ik je aan om swfObject te gebruiken om flash te embedden, gezien je dan geen verschil hebt tussen settings in diverse browsers en je code een stuk overzichtelijker is (geen duplicate tags bijv)

pstelt
%Europe/Berlin %356 %2009, 08:33
Beste Mark,

Hartelijk bedankt voor je snelle reactie. En nog meer bedankt voor je aanwijzing. De XML wordt nu ook geladen in FF.

Groet,
Paul