Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30457

Re: Modular code, HTML, HTML5 and JS

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript
Subject Re: Modular code, HTML, HTML5 and JS
Date Tue, 17 May 2016 10:17:52 +0100
Lines 28
Message-ID <170520161017520601%timstreater@greenbee.net> (permalink)
References <ec9a7a6b-b3af-4d83-9b28-e9fff5c24f4b@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net iq0LookRoEfVOXu8uzhnzA7gE8iPY4eg3WyKhauf497tLqx2HA
X-Orig-Path timstreater
Cancel-Lock sha1:grCJOCGQF1P2J4DUvkAk8t94zA8=
Mail-Copies-To nobody
User-Agent Thoth/1.9.1 (Mac OS X)
X-No-Trace yes
X-No-Archive yes
X-Face "[^yYK92E9|LVD+Av;Fa,giW>Pb"sKU%_`r0#U!ev`>CN2z}$mY(LO@{)-Mo1 )]#\pO1*O.$hdJl67V?e*J6`nb]cCpJ5<<e&qJ+e+,TI|2/F\d`C#*a*9d^?WOq'H.*% V?'C+Fi^W-l)f"Ru5V("V~M:yU/Y"W3F[O!t|M1+Q&_.LEV>ZRWNth$Kw0j3f8lz:H9T N5[T'*t:]%pcYSZM
Xref csiph.com comp.lang.javascript:30457

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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