2010-06-09 18 views
0

我有一個使用xml的Flex 3項目。它在Safari或Firefox中效果很好。但它在IE中爆炸。使用IE時在Flex 3項目中訪問XML

_clickURL = [email protected](); 
_mediaSource = [email protected](); 

如果這樣我硬編碼:

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

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

然後在IE瀏覽器工作正常,我用下面的線路訪問XML。所以,我知道解析IE中的xml存在問題。

我的XML是:

<adXMLReturn> 
    <SCRIPT type="text/javascript"/> 
    <SCRIPT type="text/javascript" src="http://www.mywebsite.com/openx/www/delivery/ajs.php?zoneid=4&amp;cb=78244247341&amp;charset=utf-8&amp;loc=http%3A//www.mywebsite.com/"/> 
    <A href="http://www.mywebsite.com/openx/www/delivery/ck.php?oaparams=2__bannerid=1__zoneid=4__cb=0416e603aa__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&amp;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&amp;campaignid=1&amp;zoneid=4&amp;loc=http%3A%2F%2Fwww.mywebsite.com%2F&amp;cb=0416e603aa" width="0" height="0"/> 
    </DIV> 
    <NOSCRIPT/> 
</adXMLReturn> 

我怎樣才能訪問XML的方式,IE會接受嗎?有什麼建議麼?

謝謝。

-Laxmidi

+0

我設置的警報: _clickURL = xhtml.a @ href.toString(); _mediaSource = xhtml.a.img。@ src.toString(); 在Internet Explorer中,這兩個變量都回到「」 - 什麼也沒有。在Safari和Firefox中,返回正確的值。 上述變量是否考慮E4X?如果是這樣,它會與IE瀏覽器兼容嗎?如果沒有,是否有解決方法? 謝謝。 -Laxmidi – Laxmidi 2010-06-10 17:32:43

回答

0

好的,我現在明白了。向Tadster和Andrew Trice大聲呼救。

這個工作在Safari和Firefox:

_clickURL = [email protected](); 
_mediaSource = [email protected](); 

這工作在IE:

_clickURL = [email protected](); 
_mediaSource = [email protected](); 

的adXMLReturn是在Safari和IE一樣,除了IE大寫的HTML標籤。當Safari返回XML時,html標籤是小寫的。

-Laxmidi