Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9586
| From | Dr J R Stockton <reply1151@merlyn.demon.co.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: innerHTML |
| Date | 2011-12-24 20:57 +0000 |
| Organization | Home |
| Message-ID | <ujYUxcLsyj9OFwdU@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <36r7f719terpj6d2guc8v2hicvnmsgilvc@4ax.com> |
In comp.lang.javascript message <36r7f719terpj6d2guc8v2hicvnmsgilvc@4ax.
com>, Thu, 22 Dec 2011 18:55:21, Gene Wirchenko <genew@ocis.net> posted:
> The FAQ states:
>9.4 How do I modify the content of the current page?
>Using the non-standard but widely implemented innerHTML property...
>
> Is it still the case that it is non-standard? Is there an
>alternative that is standard?
If you only want to change plain ordinary text to plain ordinary text,
you can expect no problem, at least in current GUI browsers.
In my <http://www.merlyn.demon.co.uk/holidays.htm> - is it right for
Canada? - the tables (when on the same page) are written with innerHTML,
disguised in function Wryt.
IIRC, problems come if one tries to rebuild the structure of a Table.
The theoretically-favoured way is to use the properties of elements to
alter the DOM tree. For an example, see
<http://www.merlyn.demon.co.uk/inc-prop.js>, which provides two
functions, one of which creates a moderately complex first Form, which
may be seen first in <http://www.merlyn.demon.co.uk/js-props.htm>.
You may now wonder what those properties are -- press the Enter button
on the Form, double-click 'body', Enter, double-click 'children', etc.
BUT, after double-clicking a number, just under the
Enter, replace, for example, x.y.z.7 with x.y.z[7] until I do
something about it. TOO LATE, I just did.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike 6.05 WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
innerHTML Gene Wirchenko <genew@ocis.net> - 2011-12-22 18:55 -0800
Re: innerHTML Andrew Poulos <ap_prog@hotmail.com> - 2011-12-23 15:18 +1100
Re: innerHTML Christian Kirsch <ck@bru6.de> - 2011-12-23 11:09 +0100
Re: innerHTML Gregor Kofler <usenet@gregorkofler.com> - 2011-12-23 13:52 +0100
Re: innerHTML Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2012-01-06 14:35 +0530
Re: innerHTML Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-01-11 08:36 +0100
Re: innerHTML "J.R." <groups_jr-1@yahoo.com.br> - 2012-01-11 07:16 -0200
Re: innerHTML Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-01-14 22:16 +0100
Re: innerHTML Dr J R Stockton <reply1151@merlyn.demon.co.uk> - 2011-12-24 20:57 +0000
Re: innerHTML Arno Welzel <usenet@arnowelzel.de> - 2012-01-04 08:54 +0100
csiph-web