Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30843
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx29.iad.POSTED!not-for-mail |
|---|---|
| From | Robert Baer <robertbaer@localnet.com> |
| 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 | How fetch data from form for javascript screening |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Lines | 82 |
| Message-ID | <ti0hz.37337$Z95.7322@fx29.iad> (permalink) |
| X-Complaints-To | DMCA@thecubenet.com |
| NNTP-Posting-Date | Tue, 12 Jul 2016 06:41:29 UTC |
| Date | Mon, 11 Jul 2016 22:41:29 -0800 |
| X-Received-Bytes | 3104 |
| X-Received-Body-CRC | 3081089679 |
| Xref | csiph.com comp.lang.javascript:30843 |
Show key headers only | View raw
What i have..(comments 'mobile' and '686' are correct)..help?
<script type="text/javascript">
// ** Screening code to use follows
document.writeln("First check addressing.. ");
var subjptr=7;
tstE= EBody[subjptr];
document.writeln("EBody[7]="+tstE+", "); // mobile
gott= Email.indexOf(tstE);
document.writeln("Email.indexOf('mobile')="+gott+"<BR><BR>"); // 686
// ** Note: The getElementsByClassName() method is not supported in
// Internet Explorer 8 and earlier versions.
</SCRIPT>
<form name="dataholder" action="">
<div class="form-group">
<label>Your Name <span style="color:#F00">*</span></label>
<input type="text" class="form-control" name="QN" id="#" >
<!-- input type="text" size=57 name="QN" value="" -->
</div>
<div class="form-group">
<label>Email <span style="color:#F00">*</span></label>
<!-- The browser must use the tpe for crude checkfor te @ sign -->
<input type="email" class="form-control" name="QE" id="#" >
</div>
<div class="form-group">
<label>Subject </label>
<input type="text" class="form-control" name="QS" id="#" >
</div>
<div class="form-group">
<label>Your Message </label>
<textarea class="form-control" rows="3"></textarea>
</div>
<button style="margin-bottom:10px;" type="submit" class="btn
btn-default">SUBMIT</button>
</form>
</div>
<script type="text/javascript">
// do not know what to do to get those variables
document.writeln("Plain document.writeln works.<BR>");
document.writeln("Data holder scheme does not work.<BR>");
Qnam=document.dataholder.QN.value;
document.writeln("From dataholder:"+Qnam+"<BR>");
document.writeln("getElementById via value does not work and
crashes.<BR>");
// Qnam=document.getElementById("QN").value;
// document.writeln("From value:"+Qnam+"<BR>");
document.writeln("getElementById via name does not work and
crashes.<BR>");
// Cnam=document.getElementById("QN").name;
// document.writeln("From name:"+Cnam+"<BR>");
document.writeln("getElementById via innerHTML does not work and
crashes.<BR>");
// Qmai=document.getElementById("QE").innerHTML;
// document.writeln(Qmai+"|<BR>");
// following gives undefined
// Qmsg=document.getElementsByName("form-control").innerHTML ;
// document.writeln(Qmsg+"|<BR>");
</SCRIPT>
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-11 22:41 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-12 11:38 +0200
Re: How fetch data from form for javascript screening "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-12 11:50 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 13:50 -0800
Re: How fetch data from form for javascript screening "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-07-13 00:09 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 17:27 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-13 01:15 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 18:53 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-13 18:03 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-14 00:16 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-14 23:40 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 13:40 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-13 01:09 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-12 17:51 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-14 01:07 +0200
Re: How fetch data from form for javascript screening "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-07-13 14:30 +0200
Re: How fetch data from form for javascript screening Robert Baer <robertbaer@localnet.com> - 2016-07-13 23:56 -0800
Re: How fetch data from form for javascript screening Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-07-15 11:32 +0200
csiph-web