Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33344
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Instead of iframe onload? |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <5638b17e-4ab2-4605-ac32-b399ddcfa099@googlegroups.com> |
| Date | 2017-05-18 15:07 +0200 |
| Message-ID | <XnsA77999E48A367eejj99@194.109.6.166> (permalink) |
Dr J R Stockton <J.R.Stockton@physics.org> wrote on 18 May 2017 in comp.lang.javascript: > I use such as > > <iframe src="someHTML.htm" onload="Procrustes(this)"></iframe> > > to adjust the height of the iframe to fit the displayed > content from page someHTML.htm ; it works in my Firefoxes. > > BUT > (1) I've not tested it on all browsers, > (2) If someHTML.htm contains a similar construction, > the 'outer' iframe resizes wrongly, for an obvious > reason, > (3) Validators & testers dislike iframe ... onload. > > Is there a better method, acceptable to at least to > validator.w3.org, known to all reasonable browsers > including Firefox esr 52.1.1 (32 bit), If it is from your own website, use serverside includes. I use them often, as they can add temporary sections, are on/off switchable by serverside if/then code and give a better [over]view of the main file source. Each hes its own outer <div> where the id matches the name of the file [#thisFile] and the internal css has all declarations starting with #thisFile. And you can place the files to be included out of external reach. main file in the <body>: <!-- #include virtual ="/../inc/June2017.asp"--> <!-- #include virtual ="/../inc/July2017.asp"--> and the file June2017.asp: <% if now<#2017/07/01# then %> ... css and html code here ... <% end if %> They love to be part of a display:flex; construct. > and free of unforeseen evils? How could one ever be able to forsee "unforeseen evils", or even more so the absense thereof? > If so, please explain. Impossible. > I have seen method ondatasetcomplete in Wikipedia. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Instead of iframe onload? Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-18 05:40 -0700
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-18 15:07 +0200
Re: Instead of iframe onload? Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-18 08:11 -0700
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-18 18:09 +0200
Re: Instead of iframe onload? Andrew Poulos <ap_prog@hotmail.com> - 2017-05-19 12:36 +1000
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-19 09:15 +0200
Re: Instead of iframe onload? Andrew Poulos <ap_prog@hotmail.com> - 2017-05-19 18:12 +1000
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-19 11:47 +0200
Re: Instead of iframe onload? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2017-05-19 02:44 -0700
Re: Instead of iframe onload? Martin Honnen <martin.honnen@gmx.de> - 2017-05-19 15:25 +0200
Re: Instead of iframe onload? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-19 18:11 +0200
Re: Instead of iframe onload? Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-19 14:30 -0700
Instead of <iframe onload=... Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-05-20 22:15 +0100
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-21 02:10 +0200
Re: Instead of <iframe onload=... Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-21 11:46 -0700
Re: Instead of <iframe onload=... Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-05-24 23:18 +0100
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-21 23:22 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 00:39 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 01:38 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 02:19 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 02:35 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 12:54 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 15:37 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 18:23 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-23 14:15 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-23 15:56 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-23 18:41 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 03:27 +0200
csiph-web