DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: problem with getElementsByTagName not working in IE7

  1. #1
    Join Date
    Mar 2006

    problem with getElementsByTagName not working in IE7

    Anyone else had this problem? I run this code in firefox 2 and it works fine but I get a length of 0 in IE.

    thanks in advance
    function handleReportData(reportData)
                var results = xmlHttp.responseXML;
                alert("gets to handle data");
                var report, reportID, displayName, fileName, reportDesc;
                var reports = results.getElementsByTagName("report");
                for(var i = 0; i < reports.length; i++)
                    report = reports[i];
                    reportID = report.getAttribute("id");
                    displayName = report.getAttribute("displayName");
                    fileName = report.getAttribute("fileName");
                    reportDesc = report.getAttribute("desc");
                    alert(reportID+" "+displayName+" "+reportDesc+" "+fileName);


    Ok guys well I guess it is a problem w/ MS dropping the ball yet again. It appears that although MS finally conformed thier xmlHttprequest object to industry standard, IE does not support responseXML. The work around? Write it out to a div tag and get the div tag as the dom. What a crock anyone have a better idea?

    Last edited by partyk1d24; 01-10-2007 at 04:55 PM.

Similar Threads

  1. Java Applet Compiler problem?
    By mdl in forum Java
    Replies: 3
    Last Post: 03-07-2005, 03:34 AM
  2. Long standing problem with access
    By Michael Culley in forum VB Classic
    Replies: 1
    Last Post: 05-08-2002, 09:33 PM
  3. problem with recordset from Sybase and Oracle
    By substring in forum VB Classic
    Replies: 2
    Last Post: 07-24-2001, 02:29 PM
  4. file access problem
    By max in forum Java
    Replies: 1
    Last Post: 05-15-2001, 07:32 PM
  5. quote in a string : query problem under VB
    By tyris in forum VB Classic
    Replies: 6
    Last Post: 02-01-2001, 03:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center