JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 20th, 2006, 04:38 AM
dhruba.bandopad dhruba.bandopad is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 20 dhruba.bandopad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 30 m 11 sec
Reputation Power: 0
QUERY: childNodes[0] not working in FF :(

I have a table row structured like this (mind the XSL variable):


<tr>
<td>
<input type="hidden" value="0"/>
<input type="hidden" value="{$RecNum}"/>
</td>
</tr>


and I have been using JavaScript like:


var tr = document.getElementById(this.Table).rows.item(i + 1);

if(tr.childNodes[0].childNodes[0].value == 1 || tr.childNodes[0].childNodes[0].value == 2)
{
}


This works perfectly fine in Internet Explorer. But in Mozilla Firefox I get:


tr.childNodes[0].childNodes[0] has no properties


Somehow childNodes, obj.parentElement, etc are not working anymore in Mozilla Firefox. Is
the DOM tree syntax totally different between IE and FF?

Please can someone help.

Reply With Quote
  #2  
Old June 20th, 2006, 04:56 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
Please don't post the same question on multiple forums on the same day.

Here's the link Kor gave you in his response of DevShed Forums.

Reply With Quote
  #3  
Old June 21st, 2006, 10:50 AM
dhruba.bandopad dhruba.bandopad is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 20 dhruba.bandopad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 30 m 11 sec
Reputation Power: 0
Quote:
Originally Posted by Kravvitz
Please don't post the same question on multiple forums on the same day.

Here's the link Kor gave you in his response of DevShed Forums.


Sorry, I thought devarticles and devshed are two different forums. But in future I'll try to remember to post only to one of them. I assume you are telling me that they are the same forums?

Reply With Quote
  #4  
Old June 21st, 2006, 11:23 AM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
No, I was not implying that. They are separate but are part of the same network. DevArticles Forums are much lower traffic than DevShed Forums.

Anyway my point is that there is no good reason to have multiple groups answer the same question from the same person on the same day. Please don't waste people's time like that. If one forum doesn't give you a good answer in about 24 hours, then try asking on another one -- give people a chance to respond before asking in multiple places. If you feel like you deserve quick answers, then perhaps you should hire a consultant.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > QUERY: childNodes[0] not working in FF :(


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway