Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx28.iad.POSTED!not-for-mail From: Robert Baer User-Agent: Mozilla/5.0 (Windows NT 5.0; rv:12.0) Gecko/20120422 Firefox/12.0 SeaMonkey/2.9 MIME-Version: 1.0 Newsgroups: comp.lang.javascript Subject: Re: How fetch data from form for javascript screening References: <7944450.CDJkKcVGEf@PointedEars.de> <19082016.EfDdHjke4D@PointedEars.de> In-Reply-To: <19082016.EfDdHjke4D@PointedEars.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 46 Message-ID: X-Complaints-To: DMCA@thecubenet.com NNTP-Posting-Date: Wed, 13 Jul 2016 02:53:37 UTC Date: Tue, 12 Jul 2016 18:53:37 -0800 X-Received-Bytes: 2574 X-Received-Body-CRC: 3694136388 Xref: csiph.com comp.lang.javascript:30854 Thomas 'PointedEars' Lahn wrote: > Robert Baer wrote: > >> Evertjan. wrote: >>>>> >>> [..] >>>>> >>> [..] >>>>> // following gives undefined >>>>> // Qmsg=document.getElementsByName("form-control").innerHTML ; >>>>> // document.writeln(Qmsg+"|
"); >>>> […] >>> document.document.getElementsByClassName("form-control")[0].innerHTML >> Cannot use.; the getElementsByClassName() method is not supported in >> Internet Explorer 8 and earlier versions. > > Do you need to support IE<= 8? * IE7 would be nice,but it looks like i can safely ignore it, especially if it gives too many problems. * except for implementing form validation code for the form, it appears that all of my new HTML5 pages behave from IE6 all the way up. Strangely, IE9 gave the most sass. Would you believe IE5 was almost better? > >> Now, getElementByClassName() is not even mentioned as being valid, > > Where? By whom/what? > >> and so there is even less info if wonderful M$ HEXploder would work. > > Responsible Web developers *test* their code in the target environments. > >> I could just as easily make up something: fetchStuffByAnyNameOrId(); >> the only advantage would be that i would KNOW it would not work. > > You are wasting precious time. Have you read “How To Ask Questions The > Smart Way”? If no, read it, and act accordingly. NOW. * OK; WHERE can i find that? Sorry, i ASSuMEd that info was on this forum and/or server. Google, etc came to the rescue. Hours of reading, may not need to buy a book again.. > Thanks.