UPDATE:XML分析器錯誤:此代碼有什麼問題?
嗨,
我已經縮小的問題(S)和它似乎是在這部分代碼:
<script type="text/javascript">
oxm_ad = {"website":"cca5e4b8-7ed2-848b-ffea-037efaac851a",
"size":"468x60",
"floor":"0.1",
"beacon":"<div id='beacon_f936906f11' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproperty-debug%2fproperty.html&cb=f936906f11&bannerid=-1' width='0' height='0' alt='' style='width: 0px; height: 0px;' \/><\/div>",
"fallback":"<a href='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=f936906f11__oadest=http%3a%2f%2fwww.mywebsite.com' target='_blank'><img src='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/ai.php?filename=mybanner.png&contenttype=png' width='468' height='60' alt='' title='' border='0' \/><\/a><div id='beacon_f936906f11' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproperty-debug%2fproperty.html&cb=f936906f11' width='0' height='0' alt='' style='width: 0px; height: 0px;' \/><\/div>"};
</script>
謝謝。
-Laxmidi
嗨,
我收到提示1090,XML解析器錯誤。我的代碼是:
<adXMLReturn><script type="text/javascript"><!--//<![cdata[
var m3_u = (location.protocol=='https:'?'https://www.mywebsite.com/openx/www/delivery/ajs.php':'http://www.mywebsite.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.mywebsite.com/openx/www/delivery/ajs.php?zoneid=4&cb=87015091150&charset=utf-8&loc=http%3a//localhost/property-debug/property.html"></script><script type="text/javascript">
oxm_ad = {"website":"cca5e4b8-7ed2-848b-ffea-037efaac851a",
"size":"468x60",
"floor":"0.1",
"beacon":"<div id='beacon_f936906f11' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproperty-debug%2fproperty.html&cb=f936906f11&bannerid=-1' width='0' height='0' alt='' style='width: 0px; height: 0px;' \/><\/div>",
"fallback":"<a href='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=f936906f11__oadest=http%3a%2f%2fwww.mywebsite.com' target='_blank'><img src='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/ai.php?filename=mybanner.png&contenttype=png' width='468' height='60' alt='' title='' border='0' \/><\/a><div id='beacon_f936906f11' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http:\/\/www.mywebsite.com\/openx\/www\/delivery\/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproperty-debug%2fproperty.html&cb=f936906f11' width='0' height='0' alt='' style='width: 0px; height: 0px;' \/><\/div>"};
</script>
<script type="text/javascript" src="http://bid.openx.net/jstag"></script><script type="text/javascript" src="http://bid.openx.net/json?c=oxm_72123972249&pid=cca5e4b8-7ed2-848b-ffea-037efaac851a&s=468x60&f=0.1&url=http%3a%2f%2flocalhost%2fproperty-debug%2fproperty.html"></script><a href="http://www.mywebsite.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=f936906f11__oadest=http%3a%2f%2fwww.mywebsite.com" target="_blank"><img src="http://www.mywebsite.com/openx/www/delivery/ai.php?filename=mybanner.png&contenttype=png" alt="" title="" border="0" height="60" width="468"></img></a><div id="beacon_f936906f11" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src="http://www.mywebsite.com/openx/www/delivery/lg.php?bannerid=1&campaignid=1&zoneid=4&loc=http%3a%2f%2flocalhost%2fproperty-debug%2fproperty.html&cb=f936906f11" alt="" style="width: 0px; height: 0px;" height="0" width="0"></img></div></adXMLReturn>
當我在瀏覽器中打開這個代碼,我得到:
此頁面包含以下錯誤:
1號線誤差在列1543:錯誤解析屬性名 下面是頁面的渲染到第一個錯誤
oxm_ad = {"website":"cca5e4b8-7ed2-848b-ffea-037efaac851a", "size":"468x60", "floor":"0.1", "beacon":"
有誰知道這個問題可能是什麼?
謝謝!
-Laxmidi
,你可能想要把''在你的第二個腳本標籤的內容<![CDATA ['...']!>。 XML解析器可能會阻塞那裏的標籤。 – Michael 2010-07-15 19:08:34