User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,437 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,691 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2050 | Replies: 2
Reply
Join Date: Jul 2006
Posts: 9
Reputation: nihao is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nihao nihao is offline Offline
Newbie Poster

Question How to correct this javascript UNDER Mozilla Firefox?

  #1  
Jul 20th, 2006
Hello everyone:

How to correct this javascript UNDER Mozilla Firefox?Or is there some fungible ways?I need your help,thx!

=> var divColl = document.all.tags("DIV");
Last edited by nihao : Jul 20th, 2006 at 3:55 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to correct this javascript UNDER Mozilla Firefox?

  #2  
Jul 20th, 2006
document.all is IE only not W3C standard.

W3C standard is
var divColl = document.getElementsByTagName("DIV");

A great place to make sure you're using W3C standards is:

http://www.w3schools.com
Last edited by hollystyles : Jul 20th, 2006 at 10:45 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Jul 2006
Posts: 9
Reputation: nihao is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nihao nihao is offline Offline
Newbie Poster

Solution Re: How to correct this javascript UNDER Mozilla Firefox?

  #3  
Jul 20th, 2006
Originally Posted by hollystyles
document.all is IE only not W3C standard.

W3C standard is
var divColl = document.getElementsByTagName("DIV");

A great place to make sure you're using W3C standards is:

http://www.w3schools.com

Hi hollystyles,thank you for you reply,and it's very helpful!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC