Topic: SWFObject & dynamic XmlDataPath (with ASP)

Hi,
I have a problem with SWFObject 1.5 and dynamic XmlDataPath.

Here is the code :

<script type="text/javascript">
    var fo = new FlashObject&#40;"viewer.swf", "viewer", "100%", "100%", "6", "#FFFFFF"&#41;;
    fo.addParam&#40;"quality", "best"&#41;;
    fo.addParam&#40;"wmode", "transparent"&#41;;
    fo.addVariable&#40;"xmlDataPath", "xml_Hotel.asp?htl=2L7&brc=2"&#41;;
    fo.write&#40;"flashcontent"&#41;;
</script>

I think that the first parameter htl=2L7 is understood by xml_Hotel.asp, but not the second (brc=2)

Here is the link that dont work : http://www2.kuoni.fr/kuonifr/diapoflash … &brc=2

But the xml is ok : http://www2.kuoni.fr/kuonifr/diapoflash … &brc=2 !!

Can anyone hep me ?
Thanks

Re: SWFObject & dynamic XmlDataPath (with ASP)

I had similar problem, then something in your question gave me the answer.

You need to escape your path...

fo.addVariable("xmlDataPath", escape("xml_Hotel.asp?htl=2L7&brc=2"));


This preserve the "&".


Regards