Advertisement

03.30.2005 at 08:21PM PST, ID: 21370880
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

XML in Internet Explorer - Problems using the For In loop

Asked by kibatsu in JavaScript

Tags: ,

At present I am working on a web application which processes an XML file retreived from the server using the XMLHTTP object. I'm looping through the childNodes in the XML file and testing the nodeName property of each so I can determine which functions I need to pass each node to.

For example, I pass the XML object to a function called process:

function process(xml) {
  for (var i in xml.childNodes) {
    if (xml.childNodes[i].nodeName == 'sponge') {
      alert('you got a sponge');
    }
  }
}

This works correctly in Firefox, but I have a problem in IE. I have an error which says "Object doesn't support this action", referring to the line where I start my For In loop.

If I do this instead (a normal For loop):

function process(xml) {
  for (var i =0; i < xml.childNodes.length; ++i) {
    if (xml.childNodes[i].nodeName == 'sponge') {
      alert('you got a sponge');
    }
  }
}

It does work correctly in IE. I don't what to have to do this since it is more code and means modifying all the For In loops I am using throughout the application.

Anyone know why IE is freaking out over the For In loop?Start Free Trial
 
Loading Advertisement...
 
[+][-]03.30.2005 at 08:26PM PST, ID: 13668652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2005 at 08:36PM PST, ID: 13668702

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.30.2005 at 10:45PM PST, ID: 13669199

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2005 at 10:46PM PST, ID: 13669203

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.31.2005 at 06:06PM PST, ID: 13677446

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2005 at 07:03PM PST, ID: 13677716

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: xml, loop
Sign Up Now!
Solution Provided By: COBOLdinosaur
Participating Experts: 4
Solution Grade: A
 
 
[+][-]03.31.2005 at 07:57PM PST, ID: 13677993

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2005 at 02:44AM PST, ID: 13679680

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.06.2006 at 02:18PM PST, ID: 15887675

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02.06.2006 at 03:30PM PST, ID: 15888270

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.11.2006 at 01:01AM PST, ID: 15929710

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-39