[javascript] NS6, was Appearance of Form Elements

TomMallard mallard at serv.net
Fri Mar 16 12:41:06 CST 2001


I just did some code which uses an xml file linked to the page, it selects
the root node from it and populates a select box on the client using
javascript with IE5.5...

 var selectRoot = xmlDoc.documentElement;
 var intCount = selectRoot.childNodes.length;

 for(i=0;i<=intCount-1;i++){;
  var sNodeName = selectRoot.childNodes[i].nodeName;
  var sElementName = selectRoot.childNodes[i].attributes[0].nodeName;
  var sElementValue = selectRoot.childNodes[i].attributes[0].nodeValue;
  var objOption = document.createElement("OPTION")
  objOption.value=sElementValue;
  objOption.text = selectRoot.childNodes[i].text;
  document.all.selectXML.add(objOption);
  }

Can NS6 do that? I know it doesn't support document.all, but is there a
workaround, and can it load xml?

tom mallard
seattle
----- Original Message -----
From: "Chris Basken" <chriz at basken.com>
To: <javascript at LaTech.edu>
Sent: Friday, March 16, 2001 10:14 AM
Subject: RE: [javascript] Appearance of Form Elements


> i ran screaming.
>
> > > form appearance CSS -- which i think is at the core of your
> > question -- is
> > > almost totally unsupported in NS 4.x.
> >
> > Anyone used NS6 much yet?
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list