Get help. Give help. A Web Design and Development Community.

Animation script not working in Chrome and Safari

  • # May 20, 2009 at 2:00 pm

    Hi all,

    I am pretty new to javascript and i customized an animation script to fit my needs. It all works fine in FF and IE but i just noticed the it doesn’t work on Chrome and the iPhone which is Safari if i’m not mistaken. Any ideas why it’s not working on those browsers?

    Here is the url: … direction/


    # May 20, 2009 at 2:23 pm

    Can you post an example of the script so we can take a look at it? u got a ton of scripts linked on that page and dont feel like lookin through all of em :p

    # May 20, 2009 at 2:47 pm

    I figured it out. I was all about the way chrome and safari do an http request. Here is the post that i found with the explanation:

    And here is the code change:
    FireFox only:

    var xmlDoc=document.implementation.createDocument(“”,” “,null);
    xmlDoc.async = false;

    Chrome + FireFox:

    var xmlhttp = new window.XMLHttpRequest();“GET”,xmlsrc,false);
    var xmlDoc = xmlhttp.responseXML.documentElement;


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We have a pretty good* newsletter.