开发者

Flex & XML in IE-- Parse Me, Baby!

I've got a Flex 3 project. I'm having a problem with XML in Internet Explorer only. Pls see the problem lines below:

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

These va开发者_如何学JAVAriables are coming up "" in IE. But, they grab the data in Safari and Firefox.

Any suggestions as to what the problem might be? Possible solution?

Thank you.

-Laxmidi


Okay, I've got it working now. The problem was case sensitivity.

This worked in Safari and Firefox:

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

This worked in IE:

_clickURL = xhtml.A.@href.toString();
_mediaSource = xhtml.A.IMG.@src.toString();

IE capitalized the HTML tags in the XML.

-Laxmidi

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜