HighDots Forums  

Re: Document Object Model - table instead of form?? - slowprocessing in large form!

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Document Object Model - table instead of form?? - slowprocessing in large form! in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lasse Reichstein Nielsen
 
Posts: n/a

Default Re: Document Object Model - table instead of form?? - slowprocessing in large form! - 01-03-2004 , 10:25 PM






egoduk (AT) hotmail (DOT) com (Edward) writes:

Quote:
Is there a way to restrict the check_boxes function to its related
table?
Yes.

Quote:
A document.table_id DOM object would seem to be the answer, but I can
find a reference to a table object.
Use:
var table = document.getElementById("table_id");

To find all the elements with the correct name inside that table, then
do:
var elems = table.getElementsByName("checkboxes_name");
That gives a collection of the elements inside the tabel, that has
the name "checkboxes_name".

Obviously, it requies the browser to support these W3C DOM methods,
which rules out Netscape 4 and IE 4.

/L
--
Lasse Reichstein Nielsen - lrn (AT) hotpop (DOT) com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.