How to correct this javascript UNDER Mozilla Firefox?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jul 2006
Posts: 14
Reputation: nihao is an unknown quantity at this point 
Solved Threads: 0
nihao nihao is offline Offline
Newbie Poster

How to correct this javascript UNDER Mozilla Firefox?

 
0
  #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 4:55 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to correct this javascript UNDER Mozilla Firefox?

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

W3C standard is
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. 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 11:45 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 14
Reputation: nihao is an unknown quantity at this point 
Solved Threads: 0
nihao nihao is offline Offline
Newbie Poster

Re: How to correct this javascript UNDER Mozilla Firefox?

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

W3C standard is
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. 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 Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC