Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30457
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Modular code, HTML, HTML5 and JS |
| Date | 2016-05-17 10:17 +0100 |
| Message-ID | <170520161017520601%timstreater@greenbee.net> (permalink) |
| References | <ec9a7a6b-b3af-4d83-9b28-e9fff5c24f4b@googlegroups.com> |
In article <ec9a7a6b-b3af-4d83-9b28-e9fff5c24f4b@googlegroups.com>, <jonas.thornvall@gmail.com> wrote: >I decided to try write abit more modular code, but i have no real good example >of how to do it. > >Lets say i have index.html and main.js, i do have figured out how to call >main.js from index.html. > >But what i would like to know is how do i refer a form with a textfiel within >index.html? >Do the script know in which document the refered form reside? > >In HTML pages with inline/embedded javascript, i know one do it like this. > >document.myform.mytext.value = somedata; > >I never quite understood what document refer to in this case. >I do have a memory passing data between frames, but never done it between a js >and html file. Why don't you buy a good book on html, another good book on javascript, and READ THEM. -- "That which can be asserted without evidence, can be dismissed without evidence." -- Christopher Hitchens
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Modular code, HTML, HTML5 and JS jonas.thornvall@gmail.com - 2016-05-17 01:19 -0700
Re: Modular code, HTML, HTML5 and JS jonas.thornvall@gmail.com - 2016-05-17 01:44 -0700
Re: Modular code, HTML, HTML5 and JS jonas.thornvall@gmail.com - 2016-05-17 01:50 -0700
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-17 10:17 +0100
Re: Modular code, HTML, HTML5 and JS Wally W. <ww84wa@aim.com> - 2016-05-17 08:36 -0400
Re: Modular code, HTML, HTML5 and JS Aleksandro <aleksandro@gmx.com> - 2016-05-17 20:30 -0400
Re: Modular code, HTML, HTML5 and JS "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-17 19:26 -0700
Re: Modular code, HTML, HTML5 and JS "Fernando D. Bozzo" <fdbozzo@gmail.com> - 2016-05-19 02:21 -0700
Re: Modular code, HTML, HTML5 and JS "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-19 05:04 -0700
Re: Modular code, HTML, HTML5 and JS "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-05-19 14:36 +0200
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-19 14:37 +0100
Re: Modular code, HTML, HTML5 and JS Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-05-19 18:18 +0200
Re: Modular code, HTML, HTML5 and JS "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-19 18:21 +0200
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-19 18:22 +0100
Re: Modular code, HTML, HTML5 and JS "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-19 21:51 +0200
Re: Modular code, HTML, HTML5 and JS "Fernando D. Bozzo" <fdbozzo@gmail.com> - 2016-05-20 03:47 -0700
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-20 11:57 +0100
Re: Modular code, HTML, HTML5 and JS Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-05-21 20:09 +0100
Re: Modular code, HTML, HTML5 and JS "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-05-20 13:07 +0200
Re: Modular code, HTML, HTML5 and JS "Fernando D. Bozzo" <fdbozzo@gmail.com> - 2016-05-20 05:09 -0700
Re: Modular code, HTML, HTML5 and JS "Fernando D. Bozzo" <fdbozzo@gmail.com> - 2016-05-20 05:23 -0700
Re: Modular code, HTML, HTML5 and JS "Fernando D. Bozzo" <fdbozzo@gmail.com> - 2016-05-20 03:54 -0700
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-20 12:06 +0100
Re: Modular code, HTML, HTML5 and JS "Fernando D. Bozzo" <fdbozzo@gmail.com> - 2016-05-20 04:04 -0700
Re: Modular code, HTML, HTML5 and JS Scott Sauyet <scott@sauyet.com> - 2016-05-23 03:21 +0000
Re: Modular code, HTML, HTML5 and JS "Mel Smith" <syntel@cox.net> - 2016-05-24 16:03 -0600
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-18 08:57 +0100
Re: Modular code, HTML, HTML5 and JS Tim Streater <timstreater@greenbee.net> - 2016-05-18 08:58 +0100
csiph-web