我试图让 Flex 3 和 OpenX 一起工作。一切都在 Safari 和 Firefox 中运行良好。但是,我在 Internet Explorer 中遇到 XML 解析器错误,这让我想扯掉头发喝松节油。
我尽量简化问题。基本上,我采用 adReturn 然后将其转换为 xml。
adReturn = '<adXMLReturn>' + adReturn + '</adXMLReturn>';
xmlReturn = new XML(adReturn);
我不认为 IE 喜欢 adReturn,如下:
"<adXMLReturn>
<SCRIPT type=text/javascript><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://www.dcscore.com/openx/www/delivery/ajs.php':'http://www.dcscore.com/openx/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=4");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></SCRIPT>
<SCRIPT type=text/javascript src="http://www.dcscore.com/openx/www/delivery/ajs.php?zoneid=4&cb=42464397192&charset=utf-8&loc=http%3A//www.dcscore.com/"></SCRIPT>
<A href="http://www.dcscore.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=80291ee9b3__oadest=http%3A%2F%2Fwww.dcscore.com" target=_blank><IMG title="" border=0 alt="" src="http://www.dcscore.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_80291ee9b3><IMG style="WIDTH: 0px; HEIGHT: 0px" alt="" src="http://www.dcscore.com/openx/www/delivery/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http%3A%2F%2Fwww.dcscore.com%2F&cb=80291ee9b3" width=0 height=0></DIV><NOSCRIPT></NOSCRIPT></adXMLReturn>"
有人在 adReturn 中看到了问题吗?帮助!
谢谢!
-拉克西米迪