Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26576
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Dynamically add/remove code in browsers |
| Date | Tue, 13 Jan 2015 20:50 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 43 |
| Message-ID | <2895506.0IJ30mozXU@PointedEars.de> (permalink) |
| References | <m905b3$90j$1@dont-email.me> <11460823.sCPipJV62P@PointedEars.de> <m939de$tpk$1@speranza.aioe.org> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1421178625 5579 eJwFwQkRADAIAzBL4ytMDuyofwlLwiB46Qh4MGhbVAlokb0pb/K4bla1R1+cuetodZNm2nwXOBDX (13 Jan 2015 19:50:25 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Tue, 13 Jan 2015 19:50:25 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwYEBwCAIA7CXmKUg51jE/09YQsQXnR4M5+PLvNmPXeLYKbuAxLdrGWq2uKga0d2RcUZNm76xZQIWfl2KFZc= |
| Cancel-Lock | sha1:TYErzekhHqP47UaxISedSey2wWM= |
| X-NNTP-Posting-Host | eJwNwYEBwDAEBMCVCF6tQ97+I6R3YVBMOgIeG3uFrKI7q9Fau1JhdyXPj0c+U2pzqDWJeCKKEQs= |
| Xref | csiph.com comp.lang.javascript:26576 |
Show key headers only | View raw
Joao Rodrigues wrote:
> Thomas Lahn wrote:
>> Also, you can use the “document.head” property if it is available:
>>
>> (document.head || document.getElementsByTagName("head")[0])
>> .appendChild(sc);
>>
>> It might be easier to use the backwards-compatible “document.body”
>> property instead:
>>
>> document.body.appendChild(sc);
>
> document.body.appendChild(sc) could be problematic in older versions of
> IE. See
> <http://www.nczonline.net/blog/2008/03/17/the-dreaded-operation-aborted-error/>
That does not apply here:
,-<http://support2.microsoft.com/kb/927917/en-us>
|
| […]
| This problem occurs because a child container HTML element contains script
| that tries to modify the parent container element of the child container.
| The script tries to modify the parent container element by using either
| the innerHTML method or the appendChild method.
Also:
| Answer: Internet Explorer 7 cannot display a particular element on a Web
| page on that Web site.
|
| […]
| How do I fix this problem?
|
| The easiest way for you to fix the problem is to upgrade to Internet
| Explorer 8. This problem no longer occurs in Internet Explorer 8.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Dynamically add/remove code in browsers "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-01-12 05:22 -0430
Re: Dynamically add/remove code in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-12 17:21 +0100
Re: Dynamically add/remove code in browsers Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-01-12 16:44 -0200
Re: Dynamically add/remove code in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-12 22:01 +0100
Re: Dynamically add/remove code in browsers Joao Rodrigues <groups_jr-1@yahoo.com> - 2015-01-12 22:06 -0200
Re: Dynamically add/remove code in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-13 01:11 +0100
Re: Dynamically add/remove code in browsers "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-01-12 15:21 -0430
Re: Dynamically add/remove code in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-12 22:03 +0100
Re: Dynamically add/remove code in browsers Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-01-13 12:17 -0200
Re: Dynamically add/remove code in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-13 20:50 +0100
csiph-web