Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE7 Error: documentElement = null or not and object

    Hey there

    I'm trying to develop a search-facility, where a user types a string in a form, and the string is used to search in a database. That's all good, and the output is good as well. A php file is creating an XML document, and when I call the php file directly in IE7 it shows and well formed XML doc.

    http://validator.w3.org/check?uri=ht...getXMLData.php

    Try calling the php file directly:

    http://www.flush-it.dk/xml/getXMLData.php

    My problem is, that when the Ajax function of Google Map, GDownloadUrl, tries to get the xml output, IE returns with the error that documentElement is not an object or is null, while Firefox (3.0.3) is working perfectly when searching.

    If anyone can help me, I would be very happy

    Regards

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    don't work in iceweasel 2.0.18(firefox 2), content-type is text/html but I guess it must be application/xml. Since I never use nginx I don't know how you can fix it.

    best regards

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by oesxyl View Post
    don't work in iceweasel 2.0.18(firefox 2), content-type is text/html but I guess it must be application/xml. Since I never use nginx I don't know how you can fix it.

    best regards
    I've tried changing the content-type to xml, but it doesn't work. The weird thing is, that the code that extract the data:

    fileXML = "http://www.flush-it.dk/xml/getXMLData.php";

    GDownloadUrl(fileXML, function(data) {
    alert(data);
    var xml = GXml.parse(data);

    var markers = xml.documentElement.getElementsByTagName("marker");

    gets out valid xml in both ie7 and firefox, but ie won't catch the root element...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •