1

私は次のページに取り組んでいます。

http://www.ranger.ryerson.ca/library/test/steveDev/testcarousel/test.html

Firefox、Chrome、Operaで動作しますが、IE6、IE7、Safari(ブラウザを見捨てられた神)では、すべて「parsererror」が表示されます。

私のページはjqueryXMLパーサーを使用していますが、悪いブラウザーはそれを好みません。問題のあるコードは次のとおりです

$.ajax({
        type: "GET",
        url: "http://www.ranger.ryerson.ca/library/test/steveDev/testcarousel/readXML.cfm",


        dataType: "xml",
        success: function(xml) {
            $(xml).find('images').each(function(){
                $(this).find('pic').each(function() {
                    temp= '<a href="'+$(this).find('link').text()+'"><img src="'+$(this).find('thumbnail').text()+'" width="'+$(this).find('width').text()+'" style="border-style: none" height="75" title="'+$(this).find('alt').text()+'"alt="'+$(this).find('alt').text()+'" /></a>';
                    carousel.add(count, temp);
                    count++;
                });
                carousel.size(count);
            });
        },
        error: function(XMLHttpRequest, textStatus, errorThrown){
            alert(textStatus);
        } 

    })

どうすれば問題を解決できますか

4

1 に答える 1

2

このノードでエンコードエラーが発生しました:

<alt>Eugénie</alt>

97行目。

encoding="utf-8"エンコーディングとして指定していることに気づきました。"é"本当にutf-8でエンコードされていますか?

于 2009-10-07T15:23:24.207 に答える