Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30471
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Modular code, HTML, HTML5 and JS |
| Date | 2016-05-18 08:58 +0100 |
| Message-ID | <180520160858568118%timstreater@greenbee.net> (permalink) |
| References | <ec9a7a6b-b3af-4d83-9b28-e9fff5c24f4b@googlegroups.com> <170520161017520601%timstreater@greenbee.net> <ev3mjb5q0rpf551ugpblhvjrk0u3q32h7p@4ax.com> <nhgcs1$7b8$1@dont-email.me> |
In article <nhgcs1$7b8$1@dont-email.me>, Aleksandro <aleksandro@gmx.com> wrote: >On 17/05/16 08:36, Wally W. wrote: >> On Tue, 17 May 2016 10:17:52 +0100, Tim Streater wrote: >> >>> 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. > >Why buy? everything is one web-search-engine search away. A book is a good reference. It may not be 100% up to date, but with the sort of questions being asked that hardly matters. And it will likely have a good *introduction* which will answer all these naive questions. -- "The idea that Bill Gates has appeared like a knight in shining armour to lead all customers out of a mire of technological chaos neatly ignores the fact that it was he who, by peddling second-rate technology, led them into it in the first place." - Douglas Adams
Back to comp.lang.javascript | Previous | Next — Previous 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