In comp.lang.javascript message <g9jk7f$adf$1$8300dec7@news.demon.co.uk>
, Tue, 2 Sep 2008 15:56:57, The Magpie <usenet@pigsinspace.co.uk>
posted:
Quote:
>GarryJones wrote:
Quote:
>This is driving me simply crazy ... this simple (?) code works in Msie
>but not Firefox.
>>
>[snip "document.forms" query]
>
>How often do we get versions of this query about MSIE using the
>"name-shortcut" addressing and other browsers not doing?
>
>I presume it is already in the FAQ,
One should read the FAQ before making comments on the FAQ or posting
questions or answers which the FAQ might treat (FAQ 2.3).
FAQ 4.41 provides the OP's answer. However, I have some doubts about
its "The best approach". A document is a two-dimensional tree (being
2-D, the children of each parent are ordered), and uniquely labelling
each leaf and node that needs to be referred to does not make use of
possibilities indicated by doc.frm1.IN & doc.frm2.IN. For example, my
holidays.htm has five buttons (for 5 locations) each of which generates
a complex table; the tables are data-driven for size and content, and
their variable elements are much better addressed structurally rather
than globally. Structural addressing deserves mention.
Quote:
so perhaps it would help if we
>regularly post a message in the group to the effect of "Here is where
>you find the FAQ - read it before you ask a question we keep getting
>asked"
The daily "FAQ Topic" posts are supposed also to serve that purpose; see
FAQ sec 1 para 4.
<FAQENTRYAt an early use of "FAQ" within the FAQ, the full "Frequently
Asked/Answered Questions" should be given. </FAQENTRY>
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)