1

I am working on the following page.

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

it works in firefox, chrome, and opera, but in IE6,IE7, and Safari (the god forsaken browsers) they all give me "parsererror"

My page uses the jquery XML parser, and the bad browsers dont like it. The troubled code is the following

$.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);
        } 

    })

how can I resolve my problem

4
  • good luck with jCarousel; that plugin drove me nuts. Commented Oct 7, 2009 at 15:19
  • Is this ajax call going to a different domain? Is so, maybe it's a jsoncallback issue? Just a guess. Commented Oct 7, 2009 at 15:21
  • I got the carousel part working, my problem is parsing some input for it Commented Oct 7, 2009 at 15:21
  • This isnt cross domain issues, they are both on the same server, same domain Commented Oct 7, 2009 at 15:23

1 Answer 1

2

There's an Encoding Error encountered on this node:

<alt>Eugénie</alt>

on line 97.

I notice you specify encoding="utf-8" as the encoding. Are you sure the "é" is really encoded with utf-8?

Sign up to request clarification or add additional context in comments.

4 Comments

never noticed that. How can I escape this character?
Or... the HTML entity: &eacute;, or another way to write the character in Unicode: U+00E9. Keep in mind that the HTML entity will make an XML parser unhappy unless it's already been defined (see en.wikipedia.org/wiki/…).
Okay, you are correct about that é being the cause of the compatibility issues. However, I do not have access to change the XML source. Is there anyway to work around this?
Figure out what it actually is encoded as, and specify that encoding. It might just be Unicode, rather than UTF-8. I did notice that the é is not correctly displayed in the alt text for that album in Firefox.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.