4 Replies Latest reply on Jun 14, 2010 2:50 PM by laxmidi

    Flex 3 Problem Parsing XML in IE

    laxmidi

      Hi,

       

      I've got a Flex 3 project that uses xml. It works great in Safari or Firefox. But it blows up in IE. I access the xml using the lines below:

       

      _clickURL = xhtml.a.@href.toString();

      _mediaSource = xhtml.a.img.@src.toString();

       

      The above works only in Safari and Firefox.

       

       

      If I hard code it like this:

       

      _clickURL = "http://www.mywebsite.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=30 58997a64__oadest=http%3A%2F%2Fwww.mywebsite.com";

       

      _mediaSource = "http://www.mywebsite.com/openx/www/delivery/ai.php?filename=mybanner.png&contenttype=png";

       

      then it works fine in IE. So, I know that there is a problem in parsing the xml in IE.

       

       

       

      My xml is:

       

      <adXMLReturn>

        <SCRIPT type="text/javascript"/>

        <SCRIPT type="text/javascript" src="http://www.mywebsite.com/openx/www/delivery/ajs.php?zoneid=4&cb=78244247341&charset=utf-8& loc=http%3A//www.mywebsite.com/"/>

        <A href="http://www.mywebsite.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=04 16e603aa__oadest=http%3A%2F%2Fwww.mywebsite.com" target="_blank">

          <IMG title="" border="0" alt="" src="http://www.mywebsite.com/openx/www/delivery/ai.php?filename=mybanner.png&contenttype=png" width="468" height="60"/>

        </A>

        <DIV style="POSITION: absolute; VISIBILITY: hidden; TOP: 0px; LEFT: 0px" id="beacon_0416e603aa">

          <IMG style="WIDTH: 0px; HEIGHT: 0px" alt="" src="http://www.mywebsite.com/openx/www/delivery/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=ht tp%3A%2F%2Fwww.mywebsite.com%2F&cb=0416e603aa" width="0" height="0"/>

        </DIV>

        <NOSCRIPT/>

      </adXMLReturn>

       

       

      How can I access the xml in a way that IE will accept? Any suggestions?

       

      Thank you.

       

      -Laxmidi