Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Breakdown a HTML file into sub textblocks. Date: Tue, 10 Sep 2019 17:35:41 +0200 Lines: 51 Message-ID: References: <618f4c30-0e7f-45c0-b089-0fc245059933@googlegroups.com> <0b66d7fb-1cc2-4c72-885e-b3e6be299fa4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net ZeKYb5DFf94ChxjrfLDzegW68NIde1VRXFVItgIRL8cdh+5Z7b Cancel-Lock: sha1:zvjrc6WwMCQrUkPzI4l9cDmqruc= In-Reply-To: <0b66d7fb-1cc2-4c72-885e-b3e6be299fa4@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37194 On 09.09.19 21:00, Jonas Thörnvall wrote: > Den måndag 9 september 2019 kl. 20:44:50 UTC+2 skrev Jonas > Thörnvall: [...] >> Well i can tell you most people working with a bigger HTML >> structure would use it "AND USE TABLES" as containers instead of >> iframes and innerHTML. >> >> THAT IS FACT. Well - I've been work with HTML professionally for more than 20 years now and I *never* even thought about using iframes to include other documents. Iframes are for things like embedding a video or other more complex content from another server like this one: >> But when idiots have their hand on implementation it becomes >> cumbersome, intricate, convoluted and unbearable and untractable to >> work with. If you don't like HTML, don't use it. There are other markup languages as well. XML knows includes - . > Or DIVS as the structural element, but i do not think they want to > refer to child and parent passing variables. It so fucking stupid but > noone notice, that is what bugging me most. What flatheaded > objectoriented programmer came up with the brilliant idea you must > refer to the loaded page to access, if your subtext element want to > access the Javascript SRC in it and of course vice versa. How would you do it if you could change the implementation? > This type of questions riddles every javascript programming forum, so > it is not just me. But noone ask why it necessary? It is mindboggling > either they love write out the references, or they are braindead, i > fear the last may come closer to reality. > > https://stackoverflow.com/questions/935127/how-to-access-parent-iframe-from-javascript Think about security and CSRF/XSRF - maybe you get the idea. -- Arno Welzel https://arnowelzel.de