Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Using getElementsByName on a DIV ? Date: Wed, 27 Apr 2016 00:14:35 +0100 Organization: A noiseless patient Spider Lines: 34 Message-ID: <87a8kg6jz8.fsf@bsb.me.uk> References: <571e5590$0$5835$e4fe514c@news.xs4all.nl> <571e6847$0$5912$e4fe514c@news.xs4all.nl> <8760v5a4ic.fsf@bsb.me.uk> <571e72f0$0$5941$e4fe514c@news.xs4all.nl> <87zish8hqk.fsf@bsb.me.uk> <571f1936$1$5824$e4fe514c@news.xs4all.nl> <87d1pc8xzs.fsf@bsb.me.uk> <571f6433$0$5816$e4fe514c@news.xs4all.nl> <877ffk8p59.fsf@bsb.me.uk> <571f9907$0$5862$e4fe514c@news.xs4all.nl> <87shy86wo0.fsf@bsb.me.uk> <571fc489$1$5825$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="10149"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nzL4IlYmloYQVgctyAHJ9qIpnmCpEEzo=" Cancel-Lock: sha1:KG79p4ABJQzTEd8yUmXWKEH8dhM= sha1:MvxAeZFMzL4IgQQe1AfXdIuxEi4= X-BSB-Auth: 1.3971bc011b46ab598256.20160427001435BST.87a8kg6jz8.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:30354 "R.Wieser" writes: >> I did: an example document with the code that does not work. > > You did ? And I did not respond to that ? Thats ... not good. > > But wait, I distincly remember having mentioned how I got a specific > element, what the result was of using an "alert" box displaying the variable > the objects reference was placed in, as well as the full command I used and > the error I got when looking in FFs Javascript Console. Thats all you > should need to reproduce the problem, isn't it ? Not always, no. But that part of the thread was fine: I asked "can you say more" and you did. You said enough to explain the error -- getElementsByName is simply not a method of elements. > Lets see .... Yes, there it is: In my third post in this thread, and even > addressed at you, ben. > > Now I think of it, you do not seem to have mentioned anything in regard to > (not) being able to reproduce the problem ... But that problem was immediately explained -- getElementsByName is not a method of elements but of documents. Is that was you have been discussing ever since -- that one incorrect method call? I thought you understood why it will not work. My request for an example was not a request to repeat that example. If there is something else not working, please give an example document. -- Ben.