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


Groups > comp.lang.javascript > #36195

Breaking up the HTML into logical blocks.

Newsgroups comp.lang.javascript
Date 2019-03-27 22:26 -0700
Message-ID <aa9e9f99-aee9-46aa-aa5c-e596794a57f7@googlegroups.com> (permalink)
Subject Breaking up the HTML into logical blocks.
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


When programming my scripts and matching HTML, i've noticed that with an application sized HTML structure it is quite beneficial for me to break up the script part into a logical structure of script sources that i load from start.

However as the complexity groves also the HTML that holds canvas, inputs, outputs also groves with the application. And i can feel the necessity to split up the bulk block of HTML, into logical functional subblocks.

I mean why should i have the HTML that deals with editing, animation, setting e.t.c in same block?

I thought the way to do it was by split up the HTML block into subblocks, that could be loaded as innerHTML into the mainblock.

But my innerHTML subblocks also hold function calls to the main HTML file "outerHTML?", and i now realised i don't know howto call the script invoked in outerHTML block from the innerHTML block.

Now someone probably say i should skip HTML and make CSS, but i am really not keen on add complexity that is not necessary. I have some CSS for mouseevent handling, but i do not want any where it is not needed.


Can i reach the script loaded in outerHTML from the innerHTML loaded page "what is the parameters"? If not what approach should i take to split up the main HTML text block into logical subs.

Here is how i load the innerHTML blocks into the outer main block.Not that it matter but the blocks are logical units hidden in buttons.

document.getElementById("mousedrum").innerHTML='<object style="min-width:100%; min-height: 300; type="text/html" data="virtkeyb.html"  ></object>';

JT

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-27 22:26 -0700
  Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 01:19 -0700
    Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 01:53 -0700
      Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 02:14 -0700
        Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 02:47 -0700
          Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 03:20 -0700
            Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 04:49 -0700
              Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:03 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:12 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:13 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:19 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:24 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:32 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:37 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:39 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 05:20 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:26 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:46 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 06:29 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 07:21 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 07:26 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 07:34 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 20:41 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 20:46 -0700
          Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 03:28 -0700
            Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 03:35 -0700
              Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 04:55 -0700
                Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 09:11 +0100
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 02:14 -0700
                Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 10:54 +0100
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 10:05 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 10:43 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 11:01 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 11:38 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:25 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:37 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 11:42 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:30 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:36 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:38 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:41 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:43 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:49 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:54 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:58 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:04 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:10 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:45 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:50 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:01 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:04 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:07 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:12 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:14 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:22 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:18 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:23 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:31 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:32 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:10 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:19 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:23 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:38 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:42 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 00:40 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-30 01:37 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 03:00 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 03:36 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-30 05:36 -0700
                Re: Breaking up the HTML into logical blocks. dr.j.r.stockton@gmail.com - 2019-03-30 07:09 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:16 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:25 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:32 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:46 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 08:21 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-31 02:16 -0700
                Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-31 11:26 +0200
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-31 07:07 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:26 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 00:51 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 01:21 -0700
                Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-30 01:31 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 02:34 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 02:46 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 02:58 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 02:22 -0700
                Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 11:03 +0100
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 08:41 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 08:51 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 09:11 -0700
                Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 17:18 +0100
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 10:31 -0700
                Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 10:32 -0700

csiph-web