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


Groups > comp.lang.javascript > #26576

Re: Dynamically add/remove code in browsers

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Dynamically add/remove code in browsers
Date 2015-01-13 20:50 +0100
Organization PointedEars Software (PES)
Message-ID <2895506.0IJ30mozXU@PointedEars.de> (permalink)
References <m905b3$90j$1@dont-email.me> <11460823.sCPipJV62P@PointedEars.de> <m939de$tpk$1@speranza.aioe.org>

Show all headers | 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


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