Re: Re: PC IE and AJAX
Jim Auldridge <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
Dustin Diaz talks about this whitespace issue a bit on his blog and shows how protoype gets around it if you care to read: http://www.dustindiaz.com/easier-dom-walking-with-cleanwhitespace/ I liked their clean white space idea alot. Jim On 1/23/06, Michel Carroll <[email protected]> wrote: > Steffan, > > your error is in the following line: > x.options[i]= new Option( (y[i].childNodes[3].firstChild.nodeValue) , > (y[i].childNodes[1].firstChild.nodeValue) ); // 1 is the value 3 is > the label > > in your comment you say that 1 is the value and 3 is the label. This > is not exactly correct. > > IE sees only the element nodes, ignoring the whitespaces, and requires > y[i].childNodes[3].firstChild.nodeValue > > FF can see the whitespace in the xml. > > You need to use either an xpath expression, or, perhaps easier here: > y[i].getElementsByTagName("value")[0].firstChild.nodeValue > > and > > y[i].getElementsByTagName("label")[0].firstChild.nodeValue > > Good luck > > Michel > > --- In [email protected], "Steffan A. Cline" <steffan@h...> wrote: > > > > I ran into this error. On FF and Safari Mac/PC this : > > > > http://steffan.hldns.com:85/alex_pilson/index.lasso > > > > Looks ok. But on IE PC I get an error saying line 15 character 4 has an > > error of Object expected. > > > > Any ideas? > > > > Is it the null in <a href="javascript:loadOptions(null,'a');">a</a> ? > > > > http://steffan.hldns.com:85/alex_pilson/scripts/functions.js > > http://steffan.hldns.com:85/alex_pilson/scripts/xmlhandler.js > > > > > > > > Thanks > > > > Steffan > > > > --------------------------------------------------------------- > > T E L 6 0 2 . 5 7 9 . 4 2 3 0 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 > > Steffan A. Cline > > Steffan@E... Phoenix, Az > > http://www.ExecuChoice.net USA > > AIM : SteffanC ICQ : 57234309 > > The Executive's Choice in Lasso driven Internet Applications > > Lasso Partner Alliance Member > > --------------------------------------------------------------- > > > > > > > > > Unsubscribe > [email protected] > > List info > http://www.quirksmode.org/dom/list.html > Yahoo! Groups Links > > > > > > > Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/